# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, distribute, sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A # PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @architecture Feature: Architectural Compliance Checks Resources should have appropriate architectural standards such as tagging, whitelisted programming language versions, API documentation. Scenario: Ensure all resources have tags Given I have resource that supports tags defined Then it must contain tags And its value must not be null Scenario Outline: Ensure that specific tags are defined Given I have resource that supports tags defined When it has tags Then it must contain And its value must match the "" regex Examples: | tags | value | | Name | .+ | Scenario: Validate lambda function runtime environment for non-compliant runtime Given I have aws_lambda_function defined Then it must contain runtime And its value must not match the "python2.*" regex