github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/plan-variable-sensitivity-module/child/main.tf (about)

     1  variable "foo" {
     2    type = string
     3  }
     4  
     5  // "bar" is defined as sensitive by both the parent and the child
     6  variable "bar" {
     7    sensitive = true
     8  }
     9  
    10  resource "aws_instance" "foo" {
    11    foo   = var.foo
    12    value = var.bar
    13  }