Hey! I'm curious how the sensors' code is executed...
# ask-community
Hey! I'm curious how the sensors' code is executed by Dagster daemon? I have a daemon running as AWS ECS task and I have a sensor defined which calls some AWS services via boto3 SDK and sensor execution always fails with the following error:
botocore.exceptions.NoCredentialsError: Unable to locate credentials
even though I have a proper IAM task role assigned to the ECS task. I also tried providing AWS credentials via environment variables, but had the same result. FWIW besides the problem with sensors the daemon works fine and I'm able to call AWS services from inside the solids without any problems
Hi Grigoriy - sensor code executes on your gRPC server actually (the daemon never runs your code directly, it just makes gRPC calls), so that server would need to have AWS credentials
I see, thank you