Undeploy accounts
Last updated
Was this helpful?
Was this helpful?
Statement:
- Effect: Allow
Action:
- organizations:ListRoots
- organizations:ListTargetsForPolicy
- organizations:ListAWSServiceAccessForOrganization
- organizations:DescribePolicy
- organizations:ListPolicies
- organizations:ListAccountsForParent
- organizations:ListAccounts
- organizations:DescribeOrganization
- organizations:ListOrganizationalUnitsForParent
Resource: "*"
# IAM permissions needed to assume role from the target accounts.
# Specify resource to restrict access to specific roles.
- Sid: IAM
Effect: Allow
Action:
- sts:AssumeRole
Resource: "*"tkm org accounts undeploytkm org accounts undeploy Root/Sandboxtkm org accounts undeploy Root/Apps/Dev Root/Apps/Testtkm org accounts undeploy --account 123456789012tkm org accounts undeploy \
--account 123456789012 \
--account 777777777777