Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

With latest terraform getting deprecated warnings for interpolation syntax #54

Closed
yussufsh opened this issue Oct 7, 2020 · 0 comments · Fixed by #55
Closed

With latest terraform getting deprecated warnings for interpolation syntax #54

yussufsh opened this issue Oct 7, 2020 · 0 comments · Fixed by #55
Assignees

Comments

@yussufsh
Copy link
Collaborator

yussufsh commented Oct 7, 2020

With TF v0.13.4 started getting the interpolation syntax warnings. This will show up during apply and validate commands.

# ./terraform version
Terraform v0.13.4

# terraform validate

Warning: Interpolation-only expressions are deprecated

  on variables.tf line 177, in locals:
 177:     private_key_file    = var.private_key_file == "" ? "${path.cwd}/data/id_rsa" : "${var.private_key_file}"

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)

Success! The configuration is valid, but there were some validation warnings as shown above.

@yussufsh yussufsh self-assigned this Oct 7, 2020
yussufsh added a commit to yussufsh/ocp4-upi-kvm that referenced this issue Oct 7, 2020
Fixes ocp-power-automation#54

Signed-off-by: Yussuf Shaikh <yussuf.shaikh@ibm.com>
bpradipt pushed a commit that referenced this issue Nov 4, 2020
Fixes #54

Signed-off-by: Yussuf Shaikh <yussuf.shaikh@ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant