dwmkerr/terraform-aws-openshift

Install to an existing VPC

mathus13 opened this issue · 5 comments

Thank you for this. I am new to openshift/k8, and still pretty new to AWS. Using terraform to bootstrap this is so helpful.

I have a need to create the openshift cluster in a pre-existing vpc and subnet.
I am wondering what the best method is to bypass the vpc creation and pass the vpc and subnet ids as a variable

Hi @mathus13 it will not be possible to add to an existing VPC without some modification to the Terraform code I'm afraid! If you are struggling to do it let me know and I will try to find some time to help.

Thank you. I figured out how to do what I needed.
Do you think it would be helpful to implement a VPC and/or Subnet variable using if statements?
If so, I would be happy to submit a PR

@mathus13 any news about this issue?

@arashkaffamanesh Time has been tight to write any kind of conditional, but I was able to make it work by emptying step 7 and replacing references to the created VPC and Subnet ids with passed variables.

I would consider this a closed issue, and if I can find time to write functionality for this I will post a PR.