terraform-compliance / cli

a lightweight, security focused, BDD test framework against terraform.
https://terraform-compliance.com
MIT License
1.36k stars 152 forks source link

Given directive doesn't hit provider. #578

Open skorobogatydmitry opened 2 years ago

skorobogatydmitry commented 2 years ago

Description

I have this scenario:

  Scenario: Ensure AWS provider has default tags set
    Given I have aws provider defined
    Then it must contain default_tags
    Then it must contain tags
    And its value must not be null

It's syntactical correct, as by this: https://terraform-compliance.com/pages/bdd-references/given.html#given-i-have-name-type-configured. But it doesn't hit plan with AWS provider:

    Scenario: Ensure AWS provider has default tags set
        💡 SKIPPING: Can not find aws provider defined in target terraform plan.
...