diff --git a/prod/main.tf b/prod/main.tf index ed17668..ba28e8a 100644 --- a/prod/main.tf +++ b/prod/main.tf @@ -7,14 +7,12 @@ terraform { } backend "s3" { bucket = "amzn-digger-demo-s3" # Change if a different S3 bucket name was used for the backend - /* Un-comment to use DynamoDB state locking - dynamodb_table = "digger-locktable-quickstart-aws" # Change if a different DynamoDB table name was used for backend - */ key = "terraform/state" region = "us-east-1" } } + provider "aws" { region = "us-east-1" # Replace with your desired AWS region } @@ -26,6 +24,7 @@ resource "aws_vpc" "vpc_network" { } } + resource "aws_subnet" "vpc_subnet" { vpc_id = aws_vpc.vpc_network.id cidr_block = "10.0.1.0/24" @@ -37,6 +36,7 @@ resource "aws_subnet" "vpc_subnet" { } } + resource "aws_security_group" "security_group" { vpc_id = aws_vpc.vpc_network.id name_prefix = "terraform-"