Skip to content

Instantly share code, notes, and snippets.

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 diogoaurelio/7051a158e366edaeca1b937290757102 to your computer and use it in GitHub Desktop.
Save diogoaurelio/7051a158e366edaeca1b937290757102 to your computer and use it in GitHub Desktop.
Terraform-compliance example bucket policy
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