Terraform-compliance example bucket policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Buckets config | |
Scenario: encryption at rest | |
Given I have AWS S3 Bucket defined | |
Then encryption at rest must be enabled | |
Scenario: resources are tagged | |
Given I have AWS S3 Bucket defined | |
Then it must contain tags | |
And its value must not be null | |
Scenario Outline: tags convention | |
Given I have AWS S3 Bucket defined | |
Then it must contain tags | |
And its value must match the "<value>" regex | |
Examples: | |
| tags | value | | |
| Name | terraform | | |
| Environment | compliance | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment