mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-04 23:59:11 +00:00
557 B
557 B
Rename S3 Bucket
Requirements
- An existing S3 bucket tracked by Terraform.
If you don't have it, you can use the following block and run
terraform apply:
resource "aws_s3_bucket" "some_bucket" {
bucket = "some-old-bucket"
}
Attention: Since S3 buckets are globally unique, you will likely have to rename the bucket as someone else might have named it that way already.
Objectives
- Rename an existing S3 bucket and make sure it's still tracked by Terraform