Skip to content

Instantly share code, notes, and snippets.

@egonSchiele
Created January 18, 2025 21:20
Show Gist options
  • Save egonSchiele/04278baccb63693f4f31aeb88fa8bb8e to your computer and use it in GitHub Desktop.
Save egonSchiele/04278baccb63693f4f31aeb88fa8bb8e to your computer and use it in GitHub Desktop.
create a VPC in terraform
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-west-1"
}
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment