-
-
Notifications
You must be signed in to change notification settings - Fork 355
Error with EFS security group if using existing VPC #252
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
Comments
Don't use the VPC CIDR block, but add a new variable to allow additional security groups to be passed in. Fixes terraform-aws-modules#252
terraform-aws-atlantis/variables.tf Lines 62 to 66 in 2df6bd6
The description is not correct, when you pass a |
@aairey so I should give the cidr block of my existing vpc? |
Yes, but things might've changed now in the latest release. Haven't tried it yet. |
It still does not work. There should be no need to specify the VPC CIDR block if you are specifying the vpc_id. The terraform should just look it up if it needs it. |
We are still having this same issue. |
@bryancusatis Apply the changes on commit 54bd2d9 made by @bodgit . This should solve the issue |
I have the same issue. Will commit bodgit@54bd2d9 not be merged into this repository ......? Shall I create a PR with the same one? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
If using an existing VPC rather than let this module create it, it now generates this error:
This is due to this line:
terraform-aws-atlantis/main.tf
Line 382 in 2df6bd6
var.cidr
doesn't need to be set if you have the VPC already created and are passing it in withvar.vpc_id
.Versions
Reproduction
Steps to reproduce the behavior:
Code Snippet to Reproduce
Use this module with the
vpc_id
parameter to use an existing VPC.Expected behavior
It shouldn't be erroring, possibly should be using a datasource to get the CIDR block associated with the VPC referenced by
var.vpc_id
.Actual behavior
See above.
The text was updated successfully, but these errors were encountered: