This project is a demonstration of creating a S3 bucket with lifecycle policy configuration using Terraform
- Create a Customer Managed KMS Key in the region where you want to create the stack..
- Modify the KMS Key Policy to let the IAM user encrypt / decrypt using any resource using the created KMS Key.
-
Clone the repository in a local hard drive.
-
Modify the terraform.tfvars file with appropriate values.
-
From the main project diretory submit the following commands:
terraform init
terraform validate
terraform plan
terraform apply -auto-approve
# To delete the stack
terraform destroy -auto-approve
- Upload a test file either using CLI or S3 console:
Post message in my blog (https://blog.subhamay.com)
Contributors names and contact info
Subhamay Bhattacharyya - [email protected]
- 0.1
- Initial Release
This project is licensed under Subhamay Bhattacharyya. All Rights Reserved.
Inspiration, code snippets, etc.