Delete the remote state bucket
After destroying each stack using terraform destroy
, you will need to manually delete the S3 bucket used for remote state storage. This is because Terraform does not support deleting S3 buckets that are not empty.
Using the AWS CLI
List the buckets in the AWS account:
Delete the bucket:
Using the AWS Management Console
Bucket name
The name of the bucket is inherited from the metadata.environment
value in the env.yml
file.
- Go to the AWS console and navigate to the S3 list.
- Click on the bucket that was created by the
remote_state
stack. - Click on the Empty button.
- Click on the Delete button.