![]() In the example below, the prefix attribute has been set to a sensitive variable, but then that value ("jae") is later disclosed as part of the resource id: If a resource attribute is used as, or part of, the provider-defined resource id, an apply will disclose the value. For example, a provider might return the following error even if "foo" is a sensitive value: "Invalid value 'foo' for field" A provider error could disclose a value if that value is included in the error message. Cases where Terraform may disclose a sensitive variableĪ sensitive variable is a configuration-centered concept, and values are sent to providers without any obfuscation. You to also mark the output value itself as sensitive, to confirm that you If you use a sensitive value as part of an Which will cause Terraform to hide it from regular output regardless of how Input Variable Documentationīecause the input variables of a module are part of its user interface, you canīriefly describe the purpose of each variable using the optional Value must be convertible to the specified type. If both the type and default arguments are specified, the given default More information on the meaning and behavior of these different types, as wellĪs detailed information about automatic conversion of complex types, see The keyword any may be used to indicate that any type is acceptable. The type constructors allow you to specify complex types such as Type constraints are created from a mixture of type keywords and typeĬonstructors. While type constraints are optional, we recommend specifying them theyĬan serve as helpful reminders for users of the module, and theyĪllow Terraform to return a helpful error message if the wrong type is used. If no type constraint is set then a value of any type The type argument in a variable block allows you to restrict the The defaultĪrgument requires a literal value and cannot reference other objects in the If no value is set when calling the module or running Terraform. The variable is considered to be optional and the default value will be used The variable declaration can also include a default argument. nullable - Specify if the variable can be null within the module.sensitive - Limits Terraform UI output when the variable is used in configuration. ![]() validation - A block to define validation rules, usually in addition to type constraints.description - This specifies the input variable's documentation.type - This argument specifies what value types are accepted for the variable.default - A default value which then makes the variable optional.Terraform CLI defines the following optional arguments for variable declarations: Module configuration blocks, and cannot be These names are reserved for meta-arguments in The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals. This name is used toĪssign a value to the variable from outside and to reference the variable's The label after the variable keyword is a name for the variable, which mustīe unique among all variables in the same module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |