merlin
01/23/2025, 8:49 PMFile "/root/.cache/pypoetry/virtualenvs/templisher-J4djokMo-py3.11/lib/python3.11/site-packages/botocore/signers.py", line 198, in sign
auth.add_auth(request)
File "/root/.cache/pypoetry/virtualenvs/templisher-J4djokMo-py3.11/lib/python3.11/site-packages/botocore/auth.py", line 423, in add_auth
raise NoCredentialsError()
botocore.exceptions.NoCredentialsError: Unable to locate credentials
The above exception was the direct cause of the following exception:
File "/root/.cache/pypoetry/virtualenvs/templisher-J4djokMo-py3.11/lib/python3.11/site-packages/prefect/flows.py", line 2036, in load_flow_from_flow_run
output = await run_steps(deployment.pull_steps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/templisher-J4djokMo-py3.11/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 191, in run_steps
raise StepExecutionError(f"Encountered error while running {fqn}") from exc
prefect.deployments.steps.core.StepExecutionError: Encountered error while running prefect_aws.deployments.steps.pull_from_s3
12:12:41 PM
Error
Process 29 exited with status code: 1
12:12:43 PM
Error
I am able to retrieve the S3-Bucket block from the container and access the AWS Credentials that are attached to the block. So I'm not sure why the pull step is failing.Marvin
01/23/2025, 8:49 PMNate
01/23/2025, 8:49 PMNate
01/23/2025, 8:54 PMmerlin
01/23/2025, 8:56 PMpull:
- prefect_aws.deployments.steps.pull_from_s3:
id: pull_code
requires: prefect-aws>=0.3.4
bucket: "{{ prefect.blocks.s3-bucket.flowcode.bucket_name }}"
folder: "{{ prefect.blocks.s3-bucket.flowcode.bucket_folder }}"
merlin
01/23/2025, 9:02 PMcredentials: "{{ prefect.blocks.aws-credentials.app-templisher }}"
which is the name of the stored AWS credentials block.Nate
01/23/2025, 9:03 PMmerlin
01/23/2025, 10:15 PMFile "/templisher/.venv/lib/python3.11/site-packages/botocore/session.py", line 422, in get_scoped_config
raise ProfileNotFound(profile=profile_name)
botocore.exceptions.ProfileNotFound: The config profile (app-templisher) could not be found
File "/templisher/.venv/lib/python3.11/site-packages/prefect/deployments/steps/core.py", line 191, in run_steps
raise StepExecutionError(f"Encountered error while running {fqn}") from exc
prefect.deployments.steps.core.StepExecutionError: Encountered error while running prefect_aws.deployments.steps.pull_from_s3
Currently my AWS Credentials block definition has a Profile Name: app-templisher
defined. But I noticed the block has additional option Botocore Config
which currently contains { "config": null, "verify": true, "use_ssl": true, "api_version": "", "endpoint_url": "", "verify_cert_path": "" }
Maybe I need to remove the profile name, or add something to the config
field?merlin
01/23/2025, 10:25 PMNate
01/24/2025, 12:48 AMThat field is more trouble that its worth...feel free to open an issue if you think we should improve the DX here!
merlin
01/24/2025, 3:28 AM