Terraform function: toset

From wikieduonline
Jump to navigation Jump to search
resource "aws_ssm_parameter" "secret" {
  for_each    = toset(var.secrets)
  name        = each.key
  description = each.key
  type        = "SecureString"
  value       = "1"

  lifecycle {
    ignore_changes = [value]
  }
}


Related[edit]

See also[edit]

Advertising: