-
Notifications
You must be signed in to change notification settings - Fork 92
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
create-efs.sh not picking correct VPC #27
Comments
In create-efs.sh script, we are filtering the VPC based on the CIDR address assigned to vpc while creating the cluster in the variables.tf file. variable.tfvariable "vpc_cidr" { create-efs.shVPD_ID= ocp-install.tf"./create-efs.sh ${var.region} ${var.vpc_cidr}", We are expecting a unique CIDR address for each VPC in a particular aws region. |
That's correct. Each of our VPCs use 10.0.0.0/16. So this is a restriction in your design? Since it is perfectly valid to re-use the same CIDR in different VPCs as they are effectively seperate isolated networks. So when you say 'We are expecting a unique CIDR address for each VPC in a particular aws region.', why are you setting that restriction? |
I have fixed the issue, now create-efs.sh won't search for vpc based on cidr address. regarding the use of same CIDR in different VPCs, as per aws best practices: |
I see that there are some technical use cases where non-overlapping ranges might be important. Whether these use cases are relevant to setting up CPD, I'm not sure, but I'm willing to give you the benefit of the doubt ;) In that case, it would be good to state in the documentation that the CIDR should be non-overlapping, as that information was not stated previously. |
Given ... An AWS account containing multiple CPD systems, each in their own VPC, each with an EFS file system
When ... running Terraform apply (which is calling create-efs.sh) using a new VPC
Expected ... EFS file system to be created with Mount Targets and Security Groups applied
Actual ... create-efs.sh seems to set VPC_ID to multiple VPCs and the remainder of the script continues but fails to execute properly. The new EFS File System exists but has no Mount Targets.
create-efs-output.txt
The text was updated successfully, but these errors were encountered: