Skip to content

Commit d055d21

Browse files
authored
Fix syntax warning with terraform 0.13 (#35)
Terraform 0.13 will throw the following warning: > Warning: Interpolation-only expressions are deprecated > on .terraform/modules/dbpool.deploy_nixos/deploy_nixos/main.tf line > 104, in data "external" "nixos-instantiate": > 104: "--argstr", "system", "${var.target_system}" > Terraform 0.11 and earlier required all non-constant expressions to be > provided via interpolation syntax, but this pattern is now deprecated. To > silence this warning, remove the "${ sequence from the start and the }" > sequence from the end of this expression, leaving just the inner expression. > Template interpolation syntax is still used to construct strings from > expressions when the template includes multiple interpolation sequences or a > mixture of literal strings and interpolations. This deprecation applies only > to templates that consist entirely of a single interpolation sequence. > (and 3 more similar warnings elsewhere) Since this syntax is already supported in 0.12 and everybody should have upgraded to that till now, this change should be safe.
1 parent cf95712 commit d055d21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws_image_nixos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ supported.
1818
}
1919

2020
resource "aws_instance" "example" {
21-
ami = "${module.nixos_image_1903.ami}"
21+
ami = module.nixos_image_1903.ami
2222
instance_type = "t2.micro"
2323

2424
...

google_image_nixos/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ resource "google_compute_instance" "example" {
2222
2323
boot_disk {
2424
initialize_params {
25-
image = "${module.nixos_image_1809.self_link}"
25+
image = module.nixos_image_1809.self_link
2626
}
2727
}
2828

0 commit comments

Comments
 (0)