douglasnaphas / terraform-aws-s3-cf-site

A static website hosted in S3 served via CloudFront
Apache License 2.0
0 stars 1 forks source link

Upgrade to Terraform 0.12 #1

Closed douglasnaphas closed 4 years ago

douglasnaphas commented 4 years ago

Fix warnings like:

Warning: Interpolation-only expressions are deprecated

  on .terraform/modules/s3-cf-site/terraform-aws-s3-cf-site-0.1.0/cloudfront.tf line 38, in resource "aws_cloudfront_distribution" "cf_distro":
  38:       origin_access_identity = "${aws_cloudfront_origin_access_identity.cf_oai.cloudfront_access_identity_path}"

...

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 7 more similar warnings elsewhere)
douglasnaphas commented 4 years ago

Done as of v.03.0.