Last active
October 11, 2017 12:15
-
-
Save zot24/3611dcd2f1ea2ee58a97333490e24a97 to your computer and use it in GitHub Desktop.
Create a S3 Bucket to store Terraform Remote State files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_s3_bucket" "state" { | |
bucket = "${var.bucket_name}" | |
versioning { | |
enabled = true | |
} | |
lifecycle { | |
prevent_destroy = true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment