Skip to content

Commit

Permalink
Create main.tf
Browse files Browse the repository at this point in the history
adds the idea of configuring an s3 bucket as the holder of the state file

#49
  • Loading branch information
mihai-satmarean authored Dec 5, 2024
1 parent a21aecb commit 0f91119
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/terraform-modules/state-bucket/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
provider "aws" {
region = "eu-central-1"
}

resource "aws_s3_bucket" "terraform_state" {
bucket = "your-terraform-state-bucket"
acl = "private"

versioning {
enabled = true
}

tags = {
Name = "Terraform State Bucket"
}
}

0 comments on commit 0f91119

Please sign in to comment.