Skip to content

Inspector Member Account Association fix #39

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

Closed
wants to merge 2 commits into from

Conversation

vijay-stephen
Copy link
Collaborator

@vijay-stephen vijay-stephen commented Jun 4, 2025

Description

Fix for below error


│ Error: creating Inspector2 Member Association (xxx): operation error Inspector2: AssociateMember, https response error StatusCode: 403, RequestID: ca322fa2-a4d3-4689-9c9c-9ceaa5a51aef, AccessDeniedException: Invoking account does not have access to associate member account
│ 
│   with module.cloud_security.module.inspector[0].aws_inspector2_member_association.this["xxx"],
│   on .terraform/modules/cloud_security/modules/inspector/main.tf line 22, in resource "aws_inspector2_member_association" "this":
│   22: resource "aws_inspector2_member_association" "this" {
│ 
╵

Related Issue

Checklist

Please ensure that the following steps are completed before submitting the pull request:

  • Code follows the Terraform best practices and style guidelines.
  • Changes are appropriately documented, including any necessary updates to README or other documentation files.
  • Unit tests have been added or updated to cover the changes introduced by this pull request.
  • Changes have been tested locally and verified to work as expected.
  • The code has been reviewed to ensure it aligns with the project's goals and standards.
  • Dependencies and backward compatibility have been considered and addressed if applicable.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)

Testing Instructions

Provide detailed steps or instructions for testing the changes introduced by this pull request.

Screenshots

Include any relevant screenshots or visual aids to help reviewers understand the changes visually, if applicable.

Additional Notes

Add any additional notes or context that might be helpful for reviewers or users testing the changes.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link

sonarqubecloud bot commented Jun 4, 2025

@vijay-stephen
Copy link
Collaborator Author

Closing to enable Terratest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant