Skip to content

Commit

Permalink
Cleanup for some more Terraform rules: aws_waf_web_acl and aws_efs_fi…
Browse files Browse the repository at this point in the history
…le_system, aws_kinesis_firehose_delivery_stream
  • Loading branch information
lhitchon committed Oct 15, 2018
1 parent be0ec3e commit a06be88
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions cli/assets/terraform.yml
Expand Up @@ -515,9 +515,12 @@ rules:
resource: aws_waf_web_acl
severity: FAILURE
assertions:
- key: default_action.type
op: ne
value: ALLOW
- none:
key: default_action
expressions:
- key: type
op: eq
value: ALLOW
tags:
- waf

Expand Down Expand Up @@ -681,8 +684,8 @@ rules:
- ec2
- ebs

- id: EFS
message: EFS Checks
- id: EFS_ENCRYPTED
message: EFS should be encrypted
resource: aws_efs_file_system
severity: FAILURE
assertions:
Expand All @@ -699,11 +702,16 @@ rules:
resource: aws_kinesis_firehose_delivery_stream
severity: FAILURE
assertions:
- or:
- key: s3_configuration.kms_key_arn
op: present
- key: extended_s3_configuration.kms_key_arn
op: present
- every:
key: s3_configuration
expressions:
- key: kms_key_arn
op: present
- every:
key: extended_s3_configuration
expressions:
- key: kms_key_arn
op: present
tags:
- firehose

Expand Down

0 comments on commit a06be88

Please sign in to comment.