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]: ECS execution role unable to fetch secrets in 5:65.0 #39173

Closed
johnzhu-optum opened this issue Sep 5, 2024 · 5 comments
Closed

[Bug]: ECS execution role unable to fetch secrets in 5:65.0 #39173

johnzhu-optum opened this issue Sep 5, 2024 · 5 comments
Labels
bug Addresses a defect in current functionality. service/secretsmanager Issues and PRs that pertain to the secretsmanager service.

Comments

@johnzhu-optum
Copy link

johnzhu-optum commented Sep 5, 2024

Terraform Core Version

1.8.5

AWS Provider Version

5.65.0

Affected Resource(s)

data.aws_secretsmanager_secret

Expected Behavior

module.<some_name>.data.aws_secretsmanager_secret.ecs-secrets["a_key_name"]: Read complete after 1s [id=arn:aws:secretsmanager:us-east-1:㊙️]

Actual Behavior

module.<some_name>.data.aws_secretsmanager_secret.ecs-secrets["a_key_name"]: Still reading... [29m51s elapsed]

Relevant Error/Panic Output Snippet

versions 5.64.0 and below works good.

ECS task execution role, defined in ecs task, has proper permission to read the secret.

Terraform Configuration Files

terraform {
required_version = "> 1.8.0"
backend "s3" {
region = "us-east-1"
}
required_providers {
aws = {
version = "
> 5.0"
source = "hashicorp/aws"
}
}
}

Steps to Reproduce

1, create ECS task execution role
2. give permission to get/describe a secret to the role
3. create ECS task, use aws_secretsmanager_secret to fetch the secret arn by name
4. use the role for. execution_role_arn in ECS task json definition
5. apply with terraform

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@johnzhu-optum johnzhu-optum added the bug Addresses a defect in current functionality. label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 5, 2024
@ewbankkit ewbankkit added service/secretsmanager Issues and PRs that pertain to the secretsmanager service. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 6, 2024
@ewbankkit
Copy link
Contributor

@johnzhu-optum Assuming that the Go 1.22.6 downgrade with Terraform AWS Provider v5.67.0 fixed this problem, I'm going to close this issue. Discussion will continue in #39311.

Copy link

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/secretsmanager Issues and PRs that pertain to the secretsmanager service.
Projects
None yet
Development

No branches or pull requests

2 participants