Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please upgrade essential guides to terraform 0.12 (vault terraform-aws) #227

Open
kristianmandrup opened this issue Feb 16, 2020 · 3 comments

Comments

@kristianmandrup
Copy link

I tried upgrading the vault provisioning guide for aws using terraform 0.12upgrade

Still getting errors:

Upgrade complete!

The configuration files were upgraded successfully. Use your version control
system to review the proposed changes, make any necessary adjustments, and
then commit.

➜  terraform-aws git:(master) ✗ terraform init       
There are some problems with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.

Error: Reserved argument name in module block

  on main.tf line 157, in module "consul_aws":
 157:   count            = var.consul_servers

The name "count" is reserved for use in a future version of Terraform.


Error: Reserved argument name in module block

  on main.tf line 208, in module "vault_aws":
 208:   count            = var.vault_servers

The name "count" is reserved for use in a future version of Terraform.


Error: Invalid variable name

  on variables.tf line 16, in variable "provider":
  16: variable "provider" {

The variable name "provider" is reserved due to its special meaning inside
module blocks.
@flybd5
Copy link

flybd5 commented Feb 21, 2020

Same here. Even after 0.12upgrade the whole thing crashes and burns. terraform validate generates dozens of errors.

@githubsaritasa
Copy link

githubsaritasa commented May 7, 2020

I got here from this video webinar
https://www.youtube.com/watch?v=fOybhcbuxJ0 and failed to test the implementation

terraform init
terraform 0.12upgrade
terraform validate

produces a long list of errors

Error: Invalid multi-line string

  on .terraform/modules/vault_aws/outputs.tf line 111, in output "zREADME":
 111: 
 112: 

Quoted strings may not be split over multiple lines. To produce a multi-line
string, either use the \n escape to represent a newline character or use the
"heredoc" multi-line template syntax.


Error: Invalid multi-line string

  on .terraform/modules/vault_aws/outputs.tf line 112, in output "zREADME":
 112: 
 113: 

Quoted strings may not be split over multiple lines. To produce a multi-line
string, either use the \n escape to represent a newline character or use the
"heredoc" multi-line template syntax.


Error: Invalid multi-line string

  on .terraform/modules/vault_aws/outputs.tf line 113, in output "zREADME":
 113: 
 114: 

Quoted strings may not be split over multiple lines. To produce a multi-line
string, either use the \n escape to represent a newline character or use the
"heredoc" multi-line template syntax.


Error: Invalid multi-line string

  on .terraform/modules/vault_aws/outputs.tf line 114, in output "zREADME":
 114: 
 115: 

Quoted strings may not be split over multiple lines. To produce a multi-line
string, either use the \n escape to represent a newline character or use the
"heredoc" multi-line template syntax.


Error: Invalid variable name

  on .terraform/modules/vault_aws/variables.tf line 59, in variable "count":
  59: variable "count" {

The variable name "count" is reserved due to its special meaning inside module

@nilesingalls
Copy link

I too would like an updated guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants