Link Search Menu Expand Document

AWS

Examples about Restricting Resources

Restrict creation of specific resources

Scenario Outline: Restrict creation of specific resources
  Given I have <resource> defined
  Then the scenario should fail

  Examples:
  | resource              |
  | AWS Security Group    |
  | aws_vpc               |
  | aws_internet_gateway  |
  | aws_ec2_instance      |

Ensure some resource types are always created

  Scenario: Ensure some resource types are always created
    Given I have any resource defined
    When its type is not some_resource_type
    Then the scenario should fail

terraform-compliance made with . Distributed by an MIT license.