Im using ECS with Fargate and trying to access my Secret Manager secrets, but when I spin up my task, they just arent there.
Since the secret is a list of secret variables, will it be evaluated as if it was a .env file? What I'm missing ?
Im trying this way:
Im my task definition container: (My secret name has a slash "/")
"secrets": [{
"name": "ecs-fretegestao/main-api",
"valueFrom": "arn:aws:secretsmanager:<my-region>:<my-acc>:secret:ecs-fretegestao/main-api-4qTFqP"
}]
My vpc and subnets have the secretsmanager endpoint:
com.amazonaws.us-east-1.secretsmanager
And my task execution role has access to everything.