Skip to content
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

Declare static type for variables. #43

Open
msrn opened this issue Mar 9, 2021 · 0 comments
Open

Declare static type for variables. #43

msrn opened this issue Mar 9, 2021 · 0 comments
Labels
enhancement New feature or request ready-for-work

Comments

@msrn
Copy link
Member

msrn commented Mar 9, 2021

Currently most of the input variables are declared as implicit variables.

While type constraints are optional, we recommend specifying them; they can serve as helpful reminders for users of the module, and they allow Terraform to return a helpful error message if the wrong type is used.

Example:

variable "name" {
  type = string
  default =""
}

Type Constraints @ Terraform Docs

@msrn msrn assigned msrn and unassigned msrn Mar 9, 2021
@msrn msrn added ready-for-work enhancement New feature or request labels Mar 9, 2021
@msrn msrn changed the title Declare type of variables. Declare static type for variables. Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready-for-work
Projects
None yet
Development

No branches or pull requests

1 participant