Skip to content

Instantly share code, notes, and snippets.

@anutator
Created October 8, 2022 21:25
Show Gist options
  • Save anutator/04ad649a801c7851e86b44f4e228195c to your computer and use it in GitHub Desktop.
Save anutator/04ad649a801c7851e86b44f4e228195c to your computer and use it in GitHub Desktop.
Terraform

В терраформе 1.3 удалят функцию defaults на опциональные значения и заменят синтаксисом

variable "with_optional_attribute" {
  type = object({
    a = string                # a required attribute
    b = optional(string)      # an optional attribute
    c = optional(number, 127) # an optional attribute with a default value
  })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment