JetBrains / package-search-gradle-plugins

Gradle plugins for Docker, Terraform and Liquibase.
Apache License 2.0
32 stars 8 forks source link

How to use Plan Variables? #13

Closed blundell closed 2 years ago

blundell commented 2 years ago

In the example project b, the build.gradle.kts has:

    planVariables = mapOf("example" to "ciao")

However I can't see this being used in the project-b-1.tf. Is it supposed to be?

So the simpler question is, how do I use planVariables once I declare them? :-)

blundell commented 2 years ago

I understand now that these are used as the default value for variables you declare in your *.tf files. Perhaps the example should include something to make that obvious like:

build.gradle.kts:

planVariables = mapOf("myExampleVar" to "ciao")

Main.tf:

variable "myExampleVar" {}

lamba92 commented 2 years ago

Indeed, the variables are passed using command line. I will update the examples.