-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Option to delete default ACLs on VPC creation. #5971
Comments
This is true for the security group that's created when a VPC is initially created. AWS does not all the group to be removed, but Terraform is also not able to manage its rules. Will this be implemented as a default flag that can remove this as well? Or should I open another issue to track the default SG rules option? |
In General, there are few default objects which gets created when a VPC is created in AWS. The following are the defaults objects
There are scenario where we need to update the default ones, since AWS does not allow deletion of some of the default objects. Since we want to automate the whole infrastructure creation with Terraform, it would be good to have a mechanism in Terraform to update the default objects which were created by AWS duirng the VPC creation. |
+1 That's the problem we facing as well. Default AWS rules are too widely open.
However Security Groups are still an issue, which currently I have no workaround for... |
The real issue is you can't overwrite/remove the rule 100 that comes by default since TF didn't create it.
Results in this:
I assume this is a general problem with things created automatically (like tags: #1296). Clearly the workaround is to just create your own items and relink everything, but smells bad... If this gets fixed, it might solve this too: #5392 |
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. |
AWS VPCs come with a default set of network ACLs that allow all inbound and outbound traffic. There's no way to then manage these ACLs directly. ACLs with higher priority can be inserted, but the defaults remain unless manually removed.
I propose a new option on
aws_vpc
to remove default network ACLs. Maybe it could be a generic option to remove all default network resources for future proofing?Test Config
Default ACLs
Related
This is similar to the Terraform's behavior for security groups, where Terraform removes the default egress rule on initial creation (see NOTE on Egress rules note on security_group).
The text was updated successfully, but these errors were encountered: