Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 13, 2024
1 parent 03619ca commit beff0d0
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,33 @@ terraform {
}
}

backend "s3" {
bucket = "getstronger-terraform-state" # Replace with your bucket name
key = "terraform/state.tfstate" # Define a path to store the state file within the bucket
region = "eu-west-2" # Replace with your AWS region
dynamodb_table = "terraform-lock-table" # The DynamoDB table to use for locking
encrypt = true # Enable encryption at rest
# shared_credentials_files = "~/.aws/credentials"
}

required_version = ">= 1.2.0"
}

provider "aws" {
region = "eu-west-2"
region = var.aws_region
}

# resource "aws_dynamodb_table" "terraform_lock" {
# name = "terraform-lock"
# billing_mode = "PAY_PER_REQUEST"
# hash_key = "LockID"
#
# attribute {
# name = "LockID"
# type = "S"
# }
# }

# resource "aws_instance" "app_server" {
# ami = "ami-830c94e3"
# instance_type = "t2.micro"
Expand Down

0 comments on commit beff0d0

Please sign in to comment.