Terraform conf generated from GUI fails

39 views
Skip to first unread message

Per Wiklander

unread,
Jun 5, 2017, 4:20:37 AM6/5/17
to CoreOS User
I successfully created a k8s cluster on AWS with the Tectonic GUI (all default settings, one node each of master, worker and etcd). I saved the assets and would now like to run terraform manually.

Running terraform plan -var-file=terraform.tfvars ../../../platforms/aws gives me:

2 error(s) occurred:

* module.vpc.aws_subnet.master_subnet: 2 error(s) occurred:

* module.vpc.aws_subnet.master_subnet[2]: index 2 out of range for list var.master_azs (max 1) in:

${var.master_azs[count.index]}
* module.vpc.aws_subnet.master_subnet[1]: index 1 out of range for list var.master_azs (max 1) in:

${var.master_azs[count.index]}
* module.vpc.aws_subnet.worker_subnet: 2 error(s) occurred:

* module.vpc.aws_subnet.worker_subnet[2]: index 2 out of range for list var.worker_azs (max 1) in:

${var.worker_azs[count.index]}
* module.vpc.aws_subnet.worker_subnet[1]: index 1 out of range for list var.worker_azs (max 1) in:

${var.worker_azs[count.index]}

Any help?

 /Per

paul...@coreos.com

unread,
Jun 6, 2017, 11:28:31 AM6/6/17
to CoreOS User
Hi Per,

I cross-posted this issue over to the Tectonic Forums, here: https://github.com/coreos/tectonic-forum/issues/140 .

Feel free to add detail, and add any additional questions. Posting in both spots should get this some additional visibility from devs.

Cheers,
Reply all
Reply to author
Forward
0 new messages