Link Search Menu Expand Document

AWS

Examples about Hardcoded Credentials

AWS Credentials should not be hardcoded

    Scenario Outline: AWS Credentials should not be hardcoded
        Given I have aws provider configured
        When it contains <key>
        Then its value must not match the "<regex>" regex

        Examples:
            | key        | regex                                                      |
            | access_key | (?<![A-Z0-9])[A-Z0-9]{20}(?![A-Z0-9])                      |
            | secret_key | (?<![A-Za-z0-9\/+=])[A-Za-z0-9\/+=]{40}(?![A-Za-z0-9\/+=]) |    

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