https://dagster.io/ logo
#deployment-ecs
Title
# deployment-ecs
d

damien

09/14/2022, 12:43 PM
We deploy dagster with terraform on ECS Fargate and we use secretmanager. When a run is launch the task which is created have our secret as a environment variable. But with sensor which is launched by the daemon, it's impossible to use secretmanager. We try to customize the ecs task to include the secret ("secrets": [{ "name": "_`environment_variable_name`_", "valueFrom": "arnawssecretsmanager:_`region`_:_`aws_account_id`_㊙️_`secret_name-AbCdEf`_" }]), but it doesn't work. Maybe someone solved this case ?
d

daniel

09/14/2022, 2:38 PM
Hey damien - do you have a user code task? sensors execute on that task, not on the daemon, so you would need to add the secrets config to the user code task
d

damien

09/14/2022, 4:47 PM
Thanks Daniel, it works.
76 Views