tall-lion-84030
03/15/2023, 11:03 AMFargateService
with a taskDefinitionArgs
and gave it a taskRole
and executionRole
with an Role containing the right permissions to retrieve secrets (‘secretsmanager:GetSecretValue’, ‘kms:Decrypt’ and ‘ssm:GetParameters’).
But i’m stuck with an error:
RessourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 1 times): Invalld ssm parameters
I was unaware that secrets manager uses ssm store parameter under the hood since i have not set any parameter store. Does anyone has any idea to help me figure this ? Thanks in advance 🙏calm-cat-43230
03/15/2023, 2:02 PMsecrets: [
{ name: 'ENV_VAR_NAME', valueFrom: 'arn:aws:ssm:<region>:<account>:parameter/parampath/paramname' }
]
tall-lion-84030
03/15/2023, 2:05 PM{
name: 'MONGODB_URI',
valueFrom: 'arn:aws:secretsmanager:eu-west-3:ACCOUNT_ID:secret:MONGODB_URI-ftkHYT',
},
calm-cat-43230
03/15/2023, 2:22 PMsecrets
block one by one until you hit the one that’s failing?