Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

References in arguments are not evaluated #40

Open
antonbabenko opened this issue Mar 5, 2021 · 1 comment
Open

References in arguments are not evaluated #40

antonbabenko opened this issue Mar 5, 2021 · 1 comment

Comments

@antonbabenko
Copy link

Good job with this extension!

In Terraform, checks support evaluation of arguments expressed in variables and remote modules to their actual values.

I try this code and it does not seem to work:

variable "value" {
  type    = bool
  default = false
}

resource "aws_kms_key" "objects" {
  description             = "KMS key is used to encrypt bucket objects"
  deletion_window_in_days = 7
  enable_key_rotation     = var.value
}

It works well if I specify static value like true, false, "false" inside enable_key_rotation.

Is this a bug? Or is it not supported yet?

@schosterbarak
Copy link
Contributor

Hi Anton,
Thank you for reporting this. We will take a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants