Skip to content

Instantly share code, notes, and snippets.

@JohnTheodore
Created September 13, 2017 22:26
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 JohnTheodore/bc34cccc477b37560699b44460ea8d5d to your computer and use it in GitHub Desktop.
Save JohnTheodore/bc34cccc477b37560699b44460ea8d5d to your computer and use it in GitHub Desktop.
## Ensure no root account access key exists
- name: account-root-access-keys-check
resource: account
comments: |
Verifies root access keys don't exist anymore
filters:
- type: iam-summary
key: AccountAccessKeysPresent
value: true
op: eq
value_type: swap
## Ensure MFA enabled for root account
- name: account-root-mfa-check
resource: account
comments: |
Verifies if MFA is enabled for root user
filters:
- type: iam-summary
key: AccountMFAEnabled
value: false
op: eq
value_type: swap
## Ensure CloudTrail is enabled in all regions
- name: account-cloudtrail-enabled
resource: account
description: |
Checks to make sure CloudTrail is enabled on the account
for all regions.
filters:
- type: check-cloudtrail
global-events: false
multi-region: false
running: false
file-digest: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment