Skip to content

key_statement.conditions breaking changeΒ #37

@leonblueconic

Description

@leonblueconic

In 3.1.1 the key_statements attribute that contained a one or more conditions could be defined like:

       conditions = [
        {
          test     = "StringEquals"
          variable = "kms:CallerAccount"
          values   = [local.current_account_id]
        },
        {
          test     = "StringEquals"
          variable = "kms:ViaService"
          values   = ["sqs.${local.current_region}.amazonaws.com"]
        }
      ]

In 4.0.0 this attribute now needs to be called 'condition'. This was not reported as a breaking change in the changelog. It just silently drops the conditions and could potentially grant to wide of an access.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions