Pattern: Use of default VPC for AWS workflow
Issue: -
Default VPC does not have a lot of the critical security features that standard VPC comes with, new resources should not be created in the default VPC and it should not be present in the Terraform.
Resolution: Create a non-default VPC for resources to be created in.
Example of incorrect code:
resource "aws_default_vpc" "default" {
tags = {
Name = "Default VPC"
}
}
Example of correct code:
# no aws default vpc present