Difference between revisions of "Warning: Quoted references are deprecated"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
+
 
 
  │ Warning: Quoted references are deprecated
 
  │ Warning: Quoted references are deprecated
 
  │
 
  │
  │  on .terraform/modules/alb/modules/alb/elbv2.tf line 226, in resource "aws_lb_target_group" "this":
+
  │  on .terraform/modules/path/to/elbv2.tf line 226, in resource "[[aws_lb_target_group]]" "this":
  │  226:  [[depends_on]] = ["aws_lb.this"]
+
  │  226:  [[depends_on]] = ["[[aws_lb]].this"]
 
  │
 
  │
 
  │ In this context, references are expected literally rather than in quotes. [[Terraform 0.11]] and earlier required
 
  │ In this context, references are expected literally rather than in quotes. [[Terraform 0.11]] and earlier required
Line 11: Line 11:
 
  │ (and 8 more similar warnings elsewhere)
 
  │ (and 8 more similar warnings elsewhere)
 
  ╵
 
  ╵
 +
 +
Solution: remove quotes. Use <code>depends_on = [aws_lb.this]</code> instead of <code>depends_on = ["aws_lb.this"]</code>
  
 
== Related ==
 
== Related ==
 
* <code>[[terraform init]]</code>
 
* <code>[[terraform init]]</code>
 +
* [[Terraform 0.11]] (2017)
 +
* <code>[[terraform plan]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 22:48, 21 October 2021

│ 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. Use depends_on = [aws_lb.this] instead of depends_on = ["aws_lb.this"]

Related[edit]

See also[edit]

Advertising: