terraform-provider-dns icon indicating copy to clipboard operation
terraform-provider-dns copied to clipboard

Documentation: Use latest Terraform syntax

Open Stretch96 opened this issue 4 years ago • 2 comments

This updates the documentation to Terraform version 0.11+ syntax, which allows constant expressions to be provided without the interpolation syntax

Current documentation snippet:

output "google_addrs" {
  value = "${join(",", data.dns_a_record_set.google.addrs)}"
}

Terraform output:

Warning: Interpolation-only expressions are deprecated

  on test.tf line 71, in output "google_addrs":
  71:   value = "${join(",", data.dns_a_record_set.google.addrs)}"

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.

Stretch96 avatar Jun 11 '21 01:06 Stretch96

Not a reviewer in the repo. But, looks good to me.

kellystuard avatar Jun 15 '21 15:06 kellystuard

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Mar 12 '22 17:03 hashicorp-cla

Apologies on the delay, but these docs have since been updated/adjusted since we migrated to Plugin Framework in #260, thanks!

austinvalle avatar Dec 12 '23 14:12 austinvalle

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar May 22 '24 23:05 github-actions[bot]