Skip to content

Instantly share code, notes, and snippets.

@kapilt
Last active November 14, 2019 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapilt/a39add18e8129c37b17412b76c64fcda to your computer and use it in GitHub Desktop.
Save kapilt/a39add18e8129c37b17412b76c64fcda to your computer and use it in GitHub Desktop.
> c7n-org run -c accounts.yml -u ec2.yml -s out -v -r all
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-3
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-north-1
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-2
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-1
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-south-1
2019-11-14 12:41:05,912: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-northeast-1
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-northeast-2
2019-11-14 12:41:05,918: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:sa-east-1
2019-11-14 12:41:05,920: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-southeast-2
2019-11-14 12:41:05,922: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-southeast-1
2019-11-14 12:41:05,930: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-central-1
2019-11-14 12:41:05,931: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:us-east-1
2019-11-14 12:41:05,931: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ca-central-1
2019-11-14 12:41:05,947: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:us-east-2
2019-11-14 12:41:05,948: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:us-west-1
2019-11-14 12:41:05,952: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:us-west-2
2019-11-14 12:41:06,091: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:eu-west-1
2019-11-14 12:41:06,092: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ap-northeast-2
2019-11-14 12:41:06,092: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ap-south-1
2019-11-14 12:41:06,093: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:sa-east-1
2019-11-14 12:41:06,093: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ap-northeast-1
2019-11-14 12:41:06,094: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:eu-west-3
2019-11-14 12:41:06,091: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:eu-north-1
2019-11-14 12:41:06,094: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:eu-west-2
2019-11-14 12:41:06,101: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:eu-central-1
2019-11-14 12:41:06,101: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:us-east-1
2019-11-14 12:41:06,103: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ap-southeast-1
2019-11-14 12:41:06,108: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ap-southeast-2
2019-11-14 12:41:06,108: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:ca-central-1
2019-11-14 12:41:06,113: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:us-east-2
2019-11-14 12:41:06,116: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:us-west-1
2019-11-14 12:41:06,126: c7n_org:DEBUG Running policy:check-ec2 account:c7n region:us-west-2
2019-11-14 12:41:07,365: c7n_org:INFO Ran account:c7n region:us-east-1 policy:check-ec2 matched:1 time:1.26
2019-11-14 12:41:08,517: c7n_org:INFO Policy resource counts Counter({'check-ec2': 1})
(test-release) kapilt@realms-scythe ~/p/test-release> custodian run -c ec2.yml --assume arn:aws:iam::111111222211:role/CloudCustodianRole -s out -r all
2019-11-14 12:39:42,767: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ap-northeast-1 count:0 time:0.00
2019-11-14 12:39:42,992: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ap-northeast-2 count:0 time:0.00
2019-11-14 12:39:43,167: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ap-south-1 count:0 time:0.00
2019-11-14 12:39:43,302: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ap-southeast-1 count:0 time:0.00
2019-11-14 12:39:43,429: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ap-southeast-2 count:0 time:0.00
2019-11-14 12:39:43,543: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:ca-central-1 count:0 time:0.00
2019-11-14 12:39:43,670: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:eu-central-1 count:0 time:0.00
2019-11-14 12:39:43,810: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:eu-north-1 count:0 time:0.00
2019-11-14 12:39:44,028: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:eu-west-1 count:0 time:0.00
2019-11-14 12:39:44,686: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:eu-west-2 count:0 time:0.51
2019-11-14 12:39:45,448: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:eu-west-3 count:0 time:0.59
2019-11-14 12:39:48,243: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:sa-east-1 count:0 time:2.66
2019-11-14 12:39:48,618: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:us-east-1 count:1 time:0.25
2019-11-14 12:39:48,982: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:us-east-2 count:0 time:0.22
2019-11-14 12:39:49,704: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:us-west-1 count:0 time:0.52
2019-11-14 12:39:57,461: custodian.policy:INFO policy:check-ec2 resource:aws.ec2 region:us-west-2 count:0 time:7.56
(test-release) kapilt@realms-scythe ~/p/test-release> custodian version
0.8.45.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment