Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Add a minimal example of a project with parameters #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/project-with-parameters/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# For interesting types of variables, check out the terraform docs:
# https://www.terraform.io/language/values/variables#declaring-an-input-variable
variable "message" {
type = string
}
Comment on lines +3 to +5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylecarbs - is there a way to set up a variable yet such that it would need to be specified at the workspace create level, as opposed to project level?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet :-( We'll have to figure out a way we wanna enable that.


# And refer to the docs on using expressions to make use of variables:
# https://www.terraform.io/language/expressions/strings#interpolation
output "hello_provisioner" {
value = "Hello, provisioner: ${var.message}"
}