Skip to content

Instantly share code, notes, and snippets.

@clohr
Created February 7, 2022 18:37
Show Gist options
  • Save clohr/f8bcf7b9f69b9b8ed9045dc0460c8ba0 to your computer and use it in GitHub Desktop.
Save clohr/f8bcf7b9f69b9b8ed9045dc0460c8ba0 to your computer and use it in GitHub Desktop.
Basic Terraform AWS VPC
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "3.7"
}
}
}
provider "aws" {
region = "us-west-2"
}
resource "aws_vpc" "example" {
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