Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Newly created ECS task unable to perform secretsmanager:GetSecretValue action due to IAM Eventual Consistency #5984

Open
rickychew77 opened this issue Nov 18, 2024 · 0 comments
Labels
type/bug Issues that are bugs.

Comments

@rickychew77
Copy link

Description:

Raised AWS Support ticket on this manner and they reverted this is due to Eventual Consistency for IAM policy. I have been using AWS Copilot for quite some times and haven't gotten this issue only during recent deployment of new stack.

Details:

AccessDeniedException because no identity-based policy allows the secretsmanager:GetSecretValue action status code: 400. The secrets manager had the resource tagging that complies with the IAM policy from AWS Copilot. It was also tested with IAM simulator that the execution role of the task was able to perform the GetSecretValue action on the said secrets manager.

Observed result:

AccessDeniedException because no identity-based policy allows the secretsmanager:GetSecretValue action status code: 400 when running copilot svc deploy

Expected result:

Able to retrieve the secrets for deployments

@rickychew77 rickychew77 added the type/bug Issues that are bugs. label Nov 18, 2024
@rickychew77 rickychew77 changed the title [Bug]: Newly created ECS task unable to perform secretsmanager:GetSecretValue action [Bug]: Newly created ECS task unable to perform secretsmanager:GetSecretValue action due to IAM Eventual Consistency Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issues that are bugs.
Projects
None yet
Development

No branches or pull requests

1 participant