Removing polices #10638
Unanswered
amckeown-blc
asked this question in
AWS
Removing polices
#10638
Replies: 1 comment 3 replies
-
|
The Lambda support docs reference running mugc to clean up policies. Since you mentioned c7n-org, it's possible to use mugc with It lets you run commands like: c7n-org run-script \
--output-dir c7n-out \
--config c7n_org_config.yml -- \
python path/to/cloud-custodian/tools/ops/mugc.py \
--region us-east-2 \
--region us-west-2 \
--dryrun \
--present \
--config policies/*.ymlWhich would say "let's dry run removing any of these policies that are currently deployed in us-east-2 or us-west-2". |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We've got a demo policy of cloudtrail type running in our AWS org. All works fine.
But how do we have a github workflow of removing them all as there doesn't appear to be a "custodian --remove" or a "c7n-org --remove" did they use to be a remove argument?
Its a shame as we have the accounts.yml file for the c7n-org and it works really well for adding a policy to all org members, but then we need to manually delete them
Beta Was this translation helpful? Give feedback.
All reactions