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

Support detaching the AdministratorAccess policy from OrganizationAccountAccessRole #36

Open
KevinHock opened this issue Nov 11, 2022 · 0 comments

Comments

@KevinHock
Copy link

KevinHock commented Nov 11, 2022

Use Case

Upon creating a new account, the OrganizationAccountAccessRole automatically has AdministratorAccess, I want to delete it in Terraform without needing to e.g. import and then delete, as that wouldn't make sense.

Describe Ideal Solution

Detaches the default AdministratorAccess policy that grants * on *. But before it does that, verifies that the ARN given by the user is attached already, so that users do not accidentally lock themselves out of an AWS subaccount after creation.

E.g. It can check that OrganizationAccountAccessRole has IAMFullAccess, and then detach the existing AdministratorAccess policy.

Alternatives Considered

Do it outside of Terraform.

@KevinHock KevinHock changed the title Support detaching the AdministrativeAccess policy from OrganizationAccountAccessRole Support detaching the AdministratorAccess policy from OrganizationAccountAccessRole Nov 11, 2022
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

No branches or pull requests

1 participant