vpc.tf 375 B

123456789101112
  1. resource "aws_vpc" "vpc" {
  2. cidr_block = var.vpc-cidr
  3. enable_dns_hostnames = var.enable-vpc-dns
  4. enable_dns_support = var.enable-vpc-dns
  5. tags = merge({ Name = "${var.vpc-name}-VPC" }, var.common-tags)
  6. }
  7. resource "aws_internet_gateway" "vpc" {
  8. vpc_id = aws_vpc.vpc.id
  9. tags = merge({ Name = "${var.vpc-name}-IGW" }, var.common-tags)
  10. }