You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
KevinHock
changed the title
Support detaching the AdministrativeAccess policy from OrganizationAccountAccessRole
Support detaching the AdministratorAccess policy from OrganizationAccountAccessRoleNov 11, 2022
Use Case
Upon creating a new account, the
OrganizationAccountAccessRole
automatically hasAdministratorAccess
, 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
hasIAMFullAccess
, and then detach the existingAdministratorAccess
policy.Alternatives Considered
Do it outside of Terraform.
The text was updated successfully, but these errors were encountered: