Terraform function: toset

From wikieduonline
Revision as of 17:58, 14 May 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: