Skip to content

Commit

Permalink
Merge pull request #6 from diggerhq/motatoes-patch-1
Browse files Browse the repository at this point in the history
Update main.tf
  • Loading branch information
motatoes authored Jun 5, 2024
2 parents 8a2e3b3 + 398ede3 commit 8e01366
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dev-ec2/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.24.0"
}
}
backend "s3" {
bucket = "digger-states-test"
key = "demo-ee/features/state"
region = "us-east-1"
}
}

provider "aws" {
region = "us-east-1" # Replace with your desired AWS region
}


resource "aws_ssm_parameter" "foo" {
name = "/dev/ec2"
Expand Down
17 changes: 17 additions & 0 deletions dev-vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.24.0"
}
}
backend "s3" {
bucket = "digger-states-test" # 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"
}
}

resource "aws_ssm_parameter" "foo" {
name = "/dev/vpc"
type = "String"
Expand Down

0 comments on commit 8e01366

Please sign in to comment.