Replies: 2 comments 1 reply
-
its because multiple tags implies intersection not union |
Beta Was this translation helpful? Give feedback.
0 replies
-
That should probably be added to the documentation to avoid confusion in the future. Do you have any tips regarding my issue? I'd like to select multiple OU's and avoid to specify 50+ account id's |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When i execute
$ c7n-org run --verbose --debug -c accounts.yml -u ./policies/logs/cwl-subscriptions.yml -s output --region eu-west-1 -t path:/sandbox/cct -t path:/security
It returns
2022-01-04 16:13:13,602: c7n_org:INFO Policy resource counts Counter()
If i only specify
-t
once, e.g:c7n-org run --dryrun -c accounts.yml -u ./policies/logs/cwl-subscriptions.yml -s output --region eu-west-1 -t path:/sandbox/cct
orc7n-org run --dryrun -c accounts.yml -u ./policies/logs/cwl-subscriptions.yml -s output --region eu-west-1 -t path:/security
It properly returns this for
path:/security
:2022-01-04 16:19:30,692: c7n_org:INFO Policy resource counts Counter({'enable-subscription-filter-for-lambda-cwl': 57})
And this for
path:/sandbox/cct
2022-01-04 16:20:10,522: c7n_org:INFO Policy resource counts Counter({'enable-subscription-filter-for-lambda-cwl': 11})
The tags exists in the config file, clearly, since it works when i only with
-t
once.What did you expect to happen?
I expected that
-t
should work, as documented here: https://cloudcustodian.io/docs/tools/c7n-org.html#selecting-accounts-regions-policies-for-executionCloud Provider
Amazon Web Services (AWS)
Cloud Custodian version and dependency information
Policy
Relevant log/traceback output
No response
Extra information or context
No response
Beta Was this translation helpful? Give feedback.
All reactions