Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 589 Bytes

aws-vpc-no-default-vpc.md

File metadata and controls

27 lines (18 loc) · 589 Bytes

Pattern: Use of default VPC for AWS workflow

Issue: -

Description

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.

Examples

Example of incorrect code:

resource "aws_default_vpc" "default" {
	tags = {
	  Name = "Default VPC"
	}
  }

Example of correct code:

# no aws default vpc present