Terraform: list type

From wikieduonline
Revision as of 09:40, 20 April 2023 by Welcome (talk | contribs) (→‎Errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Terraform wikipedia:List (abstract data type) or tuple.

Terraform Types:

  • type = list(string)
  • default = []
  • ["us-west-1a", "us-west-1c"]

Errors[edit]

╷
│ Error: Invalid index
│
│   on api.tf line 15, in resource "aws_ecs_service" "your_service":
│   15:     target_group_arn = aws_lb_target_group.your_tg[0].arn
│     ├────────────────
│     │ aws_lb_target_group.your_tg is empty tuple
│
│ The given key does not identify an element in this collection value: the
│ collection has no elements.
╵

Related terms[edit]

See also[edit]

Advertising: