profile
viewpoint

Ask questionsUnable to run 0.12upgrade

Terraform Version

0.12.3

Terraform Configuration Files

https://github.com/hoagsie/scratch/blob/master/iamgp.tf.gpg

Crash Output

https://gist.github.com/hoagsie/435026027b568afb036b23cb0e169fbd

Expected Behavior

terraform 0.12upgrade should have completed without error.

Actual Behavior

The error in crash output happens.

Steps to Reproduce

  1. Use terraforming to produce tf files
  2. Execute terraform init in directory
  3. See the upgrade needed message in output
  4. Execute terraform 0.12upgrade

Additional Context

Using terraforming 0.18.0. Latest as of writing.

hashicorp/terraform

Answer questions mildwonkey

terraform validate gives more information:

Error: Extra characters after interpolation expression

  on iamgp.tf line 209, in resource "aws_iam_group_policy" "DevOps_DevOPS-IAMPolicy":
 196:
 197:
 198:
 199:
 200:
 201:
 202:
 203:
 204:
 205:
 206:
 207:
 208:
 209:       "Resource": "arn:aws:iam::*:user/${aws:username}"

Expected a closing brace to end the interpolation expression, but found extra
characters.
useful!

Related questions

failed to save provider manifest: open .terraform/plugins/linux_amd64/lock.json: permission denied hot 4
The argument "host" is required, but no definition was found. hot 3
Module cannot find alias AWS provider in 0.12.0 hot 3
Error: Invalid template interpolation value hot 2
Terraform v0.11.1 : Error downloading modules: Error loading modules: open .terraform/modules/3f10921295c292995128e9e36eb: no such file or directory hot 2
MalformedPolicyDocument: Policy document should not specify a principal. hot 2
Error in Terraform 0.12.0: This object has no argument, nested block, or exported attribute hot 2
Feature Request - Allow list/array in 'query' in 'external' data source hot 2
Terraform provider downloads fail with TLS handshake timeout hot 2
'terraform init' failed with 'Registry service unreachable.' error hot 2
for_each attribute for creating multiple resources based on a map hot 2
`Unreadable module directory` error is not clear for nested modules hot 2
Provider Development: Expected type 'string', got unconvertible type '[]interface {}' - with complicated block hot 2
"Error: Provider configuration not present" when aliased provider is used hot 2
Error loading state: state snapshot was created by Terraform v0.12.7, which is newer than current v0.12.6 hot 2
Github User Rank List