thinkstack-co / terraform-modules

Terraform modules
MIT License
7 stars 4 forks source link

Dev fix ssm vpc endpoints #117

Closed jakeasarus closed 1 year ago

jakeasarus commented 1 year ago

There were some changes made to the working code in this commit: https://github.com/thinkstack-co/terraform-modules/commit/45b0f55ee7a352626b020d3f399be99b5e967f36

Example of changes: aws_subnet.private_subnets..id[0]] changed to aws_subnet.private_subnets[].id

Terraform does not like this because it wants a string and sees a tuple with 2 items in it.

Since these changes the code has not worked. I am removing the subnets list that includes all of the subnets, and instead choosing a single subnet in the private subnets list. This will get the code in a working state and allow us to move forward with DR tests in the future. We can make additional improvements in the future, but the priority is a working codebase.

Proof of functioning code - https://app.terraform.io/app/thinkstack-co/workspaces/solarity_dr_infrastructure/runs/run-Thgr42dEoy1nghTc