Warning: Quoted references are deprecated

From wikieduonline
Revision as of 22:47, 21 October 2021 by Welcome (talk | contribs)
Jump to navigation Jump to search

c ╷

│ Warning: Quoted references are deprecated
│
│   on .terraform/modules/path/to/elbv2.tf line 226, in resource "aws_lb_target_group" "this":
│  226:   depends_on = ["aws_lb.this"]
│
│ In this context, references are expected literally rather than in quotes. Terraform 0.11 and earlier required
│ quotes, but quoted references are now deprecated and will be removed in a future version of Terraform. Remove the
│ quotes surrounding this reference to silence this warning.
│
│ (and 8 more similar warnings elsewhere)
╵

Solution: remove quotes. Write depends_on = [aws_lb.this] in stead of depends_on = ["aws_lb.this"]

Related

See also

Advertising: