Closed roynesholen closed 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @roynesholen 👋 Thank you for taking the time to raise this! Are you able to provide debug logs (redacted as needed)?
@justinretzolk Hi I added filtered terraform debug log for this test account in sandbox terraform Debug log says Access denied reason
The normal log says 21 retries... module.inspector-eu-west-1[0].aws_inspector2_member_association.members["xxxxx"]: Still creating... [2m20s elapsed] module.inspector-eu-west-1[0].aws_inspector2_member_association.members["xxxxx"]: Still creating... [2m30s elapsed] module.inspector-eu-north-1[0].aws_inspector2_member_association.members["xxxxx"]: Still creating... [2m31s elapsed] ╷ │ Error: creating Amazon Inspector Member Association (xxxxxx): waiting for completion: couldn't find resource (21 retries) │ │ with module.inspector-eu-west-1[0].aws_inspector2_member_association.members["xxxxx"], │ on modules/inspector/inspector.tf line 37, in resource "aws_inspector2_member_association" "members": │ 37: resource "aws_inspector2_member_association" "members" { │ ╵
FYI: The next inspector2 service that also forget in the policy, logged correctly deny reason in standard logs. module.inspector-eu-west-1[0].aws_inspector2_member_association.members["xxxxxxx"]: Destroying... [id=xxxxxxx] ╷ │ Error: deleting Amazon Inspector Member Association (xxxxxx): operation error Inspector2: DisassociateMember, https response error StatusCode: 403, RequestID: 8e4d0931-3707-45db-aaed-e2b163c0d713, AccessDeniedException: User: arn:aws:sts::xxxxx:assumed-role/xxx/aws-go-sdk-1724414893096856936 is not authorized to perform: inspector2:DisassociateMember on resource: arn:aws:inspector2:eu-north-1:xxxxxx:/members/disassociate
[!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.
This functionality has been released in v5.69.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Terraform Core Version
1.9.4
AWS Provider Version
5.63.0
Affected Resource(s)
Expected Behavior
cloutrail logs for this resource log Access Denied when i miss the correct Allowed inspector2 policy .
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Not give the correct inspector2 Allowed policy needed for aws_inspector2_member_association
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None