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

terraform aws fails #5430

Closed
albertollamaso opened this issue Dec 11, 2019 · 0 comments · Fixed by #5435
Closed

terraform aws fails #5430

albertollamaso opened this issue Dec 11, 2019 · 0 comments · Fixed by #5435
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@albertollamaso
Copy link

Trying to use the terraform scripts for creating resources in AWS.

Environment:

  • I've cloned latest version of kubespry repository

  • I've set properly the fields in file: credentials.tfvars

  • The command I run: terraform plan -var-file=credentials.tfvars

  • Terraform version:

Terraform v0.12.12
+ provider.aws v2.41.0
+ provider.null v2.1.2
+ provider.template v2.1.2
  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
    Darwin 19.0.0 x86_64

  • error output:

Error: Incorrect attribute value type

  on create-infrastructure.tf line 58, in resource "aws_instance" "bastion-server":
  58:   subnet_id                   = "${element(module.aws-vpc.aws_subnet_ids_public, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 58, in resource "aws_instance" "bastion-server":
  58:   subnet_id                   = "${element(module.aws-vpc.aws_subnet_ids_public, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 60, in resource "aws_instance" "bastion-server":
  60:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 60, in resource "aws_instance" "bastion-server":
  60:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 83, in resource "aws_instance" "k8s-master":
  83:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 83, in resource "aws_instance" "k8s-master":
  83:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 83, in resource "aws_instance" "k8s-master":
  83:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 85, in resource "aws_instance" "k8s-master":
  85:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 85, in resource "aws_instance" "k8s-master":
  85:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 85, in resource "aws_instance" "k8s-master":
  85:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 110, in resource "aws_instance" "k8s-etcd":
 110:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 110, in resource "aws_instance" "k8s-etcd":
 110:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 110, in resource "aws_instance" "k8s-etcd":
 110:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 112, in resource "aws_instance" "k8s-etcd":
 112:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 112, in resource "aws_instance" "k8s-etcd":
 112:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 112, in resource "aws_instance" "k8s-etcd":
 112:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 130, in resource "aws_instance" "k8s-worker":
 130:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 130, in resource "aws_instance" "k8s-worker":
 130:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 130, in resource "aws_instance" "k8s-worker":
 130:   subnet_id         = "${element(module.aws-vpc.aws_subnet_ids_private, count.index)}"

Inappropriate value for attribute "subnet_id": string required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 132, in resource "aws_instance" "k8s-worker":
 132:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 132, in resource "aws_instance" "k8s-worker":
 132:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on create-infrastructure.tf line 132, in resource "aws_instance" "k8s-worker":
 132:   vpc_security_group_ids = "${module.aws-vpc.aws_security_group}"

Inappropriate value for attribute "vpc_security_group_ids": element 0: string
required.


Error: Incorrect attribute value type

  on modules/elb/main.tf line 31, in resource "aws_elb" "aws-elb-api":
  31:   subnets         = "${var.aws_subnet_ids_public}"
@albertollamaso albertollamaso added the kind/bug Categorizes issue or PR as related to a bug. label Dec 11, 2019
This was referenced Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant