Sébastien Arnaud
04/27/2021, 7:29 PMKevin Kho
Sébastien Arnaud
04/27/2021, 7:32 PMFile "/opt/conda/envs/coiled/lib/python3.9/site-packages/mlflow/store/artifact/s3_artifact_repo.py", line 110, in list_artifacts
for result in results:
File "/opt/conda/envs/coiled/lib/python3.9/site-packages/botocore/paginate.py", line 255, in __iter__
response = self._make_request(current_kwargs)
File "/opt/conda/envs/coiled/lib/python3.9/site-packages/botocore/paginate.py", line 332, in _make_request
return self._method(**current_kwargs)
File "/opt/conda/envs/coiled/lib/python3.9/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/opt/conda/envs/coiled/lib/python3.9/site-packages/botocore/client.py", line 676, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
Kevin Kho
Sébastien Arnaud
04/27/2021, 7:35 PMKevin Kho
Sébastien Arnaud
04/27/2021, 7:37 PMdask_executor = DaskExecutor(
cluster_class=coiled.Cluster,
cluster_kwargs={
"configuration": "etl-cluster-config",
"n_workers": 8,
},
)
Kevin Kho
Kevin Kho
flow.run_config = LocalRun(env={"SOME_VAR": "value"})
This will pass the AWS CREDENTIAL to the Coiled cluster because I think the issue is that the environment variable is just on your local machine but hasn’t been passed.Sébastien Arnaud
04/27/2021, 7:54 PMSébastien Arnaud
04/27/2021, 8:03 PMKevin Kho
prefect agent local start --env variable
. If you use it the PREFECT_CONTEXT_SECRETS way, I think you would need to configure these on the agent running the flow. I would pass it the way that MLFlow needs it which I’m not sure. Does that help?Sébastien Arnaud
04/27/2021, 8:11 PM