I’m working on the Create Public S3 Bucket Using Terraform lab. (Terraform level 1)
My Terraform code creates a bucket named datacenter-s3-20078
with acl = "public-read"
.
aws --endpoint-url=http://aws:4566 s3 ls
shows the bucket exists, and get-bucket-acl
confirms public READ access.
However, when I submit the task, I get:
'datacenter-s3-20078' public s3 bucket doesn't exist.
It seems the checker is looking in real AWS while the lab uses LocalStack (provider.tf has an endpoints
block pointing to http://aws:4566
).
Has anyone else faced this? How can i solve this?