Skip to content

Commit

Permalink
Add support for versioning s3 bucket
Browse files Browse the repository at this point in the history
Signed-off-by: Ige Adetokunbo Temitayo <igeadetokunbo@gmail.com>
  • Loading branch information
ExitoLab committed Apr 15, 2021
1 parent 53d87ca commit ce7e813
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion s3-bucket/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
resource "aws_s3_bucket" "terraform_pratice" {
bucket = "terraform-practice"
acl = "private"
force_destroy = true

versioning {
enabled = true
}

tags = {
Name = "S3 Remote Terraform State Store"
Expand Down
2 changes: 1 addition & 1 deletion s3-bucket/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ provider "aws" {
}

terraform {
required_version = ">= 0.14.0"
required_version = ">= 0.14.0, < 0.15.0"
required_providers {
aws = ">= 3.18"
}
Expand Down

0 comments on commit ce7e813

Please sign in to comment.