You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}"
The text was updated successfully, but these errors were encountered:
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:
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Darwin 19.0.0 x86_64
error output:
The text was updated successfully, but these errors were encountered: