Skip to content

VPC Example

Terraform
terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 3.0"
    }
  }
}

# Configure the AWS Provider
provider "aws" {
  profile = "default"
  region = "eu-west-1"
}

# Create a VPC
resource "aws_vpc" "example-vpc" {
  cidr_block = "100.100.0.0/16"

  tags = {
    Name = "test"
  }

}
Back to top