vault-guides icon indicating copy to clipboard operation
vault-guides copied to clipboard

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

Open kristianmandrup opened this issue 5 years ago • 3 comments

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.

kristianmandrup avatar Feb 16 '20 18:02 kristianmandrup

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

flybd5 avatar Feb 21 '20 15:02 flybd5

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

githubsaritasa avatar May 07 '20 00:05 githubsaritasa

I too would like an updated guide

nilesingalls avatar Feb 22 '23 20:02 nilesingalls