-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add network #4
Add network #4
Conversation
resource "aws_vpc" "this" { | ||
cidr_block = var.vpc_cidr | ||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#enable_dns_support | ||
enable_dns_support = true | ||
# https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#enable_dns_hostnames | ||
enable_dns_hostnames = true | ||
#checkov:skip=CKV2_AWS_11: Not creating a flow log for this VPC | ||
tags = { | ||
"Name" = "app-4" | ||
} | ||
} |
Check warning
Code scanning / checkov
Ensure VPC flow logging is enabled in all VPCs Warning
resource "aws_eip" "nat_gateway" { | ||
count = length(var.subnet_cidr_public) | ||
domain = "vpc" | ||
#checkov:skip=CKV2_AWS_19: The IP is attached to the NAT gateway | ||
} |
Check warning
Code scanning / checkov
Ensure that all EIP addresses allocated to a VPC are attached to EC2 instances Warning
💰 Infracost estimate: monthly cost will increase by $33 📈
Infracost output
|
Terraform Format and Style 🖌
|
this pr closes #2