https://dagster.io/ logo
Title
g

Grigoriy Sterin

10/18/2021, 7:33 PM
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
d

daniel

10/18/2021, 8:20 PM
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
g

Grigoriy Sterin

10/18/2021, 9:08 PM
I see, thank you