Ben Wilson
04/11/2023, 4:38 PMbotocore.exceptions.NoCredentialsError: Unable to locate credentials
File "/usr/local/lib/python3.10/site-packages/dagster_graphql/implementation/execution/__init__.py", line 108, in terminate_pipeline_execution
instance.run_coordinator.cancel_run(run_id)
File "/usr/local/lib/python3.10/site-packages/dagster/_core/run_coordinator/queued_run_coordinator.py", line 252, in cancel_run
return self._instance.run_launcher.terminate(run_id)
File "/usr/local/lib/python3.10/site-packages/dagster/_core/instance/__init__.py", line 675, in run_launcher
launcher = cast(InstanceRef, self._ref).run_launcher
File "/usr/local/lib/python3.10/site-packages/dagster/_core/instance/ref.py", line 491, in run_launcher
return self.run_launcher_data.rehydrate() if self.run_launcher_data else None
File "/usr/local/lib/python3.10/site-packages/dagster/_serdes/config_class.py", line 99, in rehydrate
return klass.from_config_value(self, check.not_none(result.value))
File "/usr/local/lib/python3.10/site-packages/dagster_aws/ecs/launcher.py", line 311, in from_config_value
return EcsRunLauncher(inst_data=inst_data, **config_value)
File "/usr/local/lib/python3.10/site-packages/dagster_aws/ecs/launcher.py", line 127, in __init__
task_definition = self.ecs.describe_task_definition(taskDefinition=self.task_definition)
File "/usr/local/lib/python3.10/site-packages/botocore/client.py", line 530, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/client.py", line 943, in _make_api_call
http, parsed_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/botocore/client.py", line 966, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/usr/local/lib/python3.10/site-packages/botocore/endpoint.py", line 119, in make_request
return self._send_request(request_dict, operation_model)
File "/usr/local/lib/python3.10/site-packages/botocore/endpoint.py", line 198, in _send_request
request = self.create_request(request_dict, operation_model)
File "/usr/local/lib/python3.10/site-packages/botocore/endpoint.py", line 134, in create_request
self._event_emitter.emit(
File "/usr/local/lib/python3.10/site-packages/botocore/hooks.py", line 412, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/hooks.py", line 256, in emit
return self._emit(event_name, kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/hooks.py", line 239, in _emit
response = handler(**kwargs)
File "/usr/local/lib/python3.10/site-packages/botocore/signers.py", line 105, in handler
return self.sign(operation_name, request)
File "/usr/local/lib/python3.10/site-packages/botocore/signers.py", line 189, in sign
auth.add_auth(request)
File "/usr/local/lib/python3.10/site-packages/botocore/auth.py", line 418, in add_auth
raise NoCredentialsError()
but I'm having trouble narrowing down exactly where to look. I follow that it's an issue with AWS credentials but not sure exactly what dagster is trying to do here. Can anyone offer any insight? Thanks very much in advance!Bernardo Cortez
04/11/2023, 4:46 PMBen Wilson
04/11/2023, 4:47 PMBernardo Cortez
04/11/2023, 4:53 PMBen Wilson
04/11/2023, 4:53 PMBernardo Cortez
04/11/2023, 6:03 PMTim Castillo
04/11/2023, 7:39 PMBen Wilson
04/11/2023, 7:41 PMTim Castillo
04/11/2023, 7:42 PMBen Wilson
04/11/2023, 7:43 PMTim Castillo
04/20/2023, 5:50 PMBen Wilson
04/20/2023, 5:51 PMTim Castillo
05/03/2023, 3:26 PMBen Wilson
05/03/2023, 3:28 PMjohann
05/03/2023, 3:36 PMBen Wilson
05/03/2023, 4:27 PMjohann
05/03/2023, 6:08 PMStopTask
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticcontainerservice.htmlBen Wilson
05/12/2023, 5:09 PM"ecs:RunTask",
"ecs:StopTask",
"ecs:DescribeTaskDefinition",
"ecs:DescribeTasks",
"ecs:ListTasks"
seems to address the issue and allows the dagit process/assigned role to cancel the process.
Thanks @johann and @Tim Castillo very much for giving me some helpful guidance along the way!