Reputation: 61
I am using docker containers with secrets on ECS, without problems. After moving to fargate and platform 1.4 for efs support i start getting the following error.
Any help please?
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secret from asm: service call has been retried 1 time(s): secret arn:aws:secretsmanager:eu-central-1:.....
Upvotes: 6
Views: 6132
Reputation: 366
I had the same error message, but the checklist above misses the cause of my problem. If you are using VPC endpoints to access AWS services (ie, secretsmanager, ecr, SQS, etc) then those endpoints MUST permit access to the security group that is associated with the VPC subnet that your ECS instance is running in.
Another watchit is, if you are using EFS to host volumes, ensure that your volumes can be mounted by the same security group identified above. Go to EFS, select the appropriate file system, Network tab, then Manage.
Upvotes: 0
Reputation: 336
Here's a checklist:
GetSecretValue
IAM permission to the ARN(s) of the secrets manager entry(or entries) set in the ECS "tasks role".Edit: Here's another excellent answer - https://stackoverflow.com/a/66802973
Upvotes: 4