What are the steps to remove an export bucket associated with a cluster?
My situation:
I’ve successfully created a cluster, back up schedule with export bucket to AWS S3 with Terraform.
However when trying to destroy the created resources, deletion step for “mongodbatlas_cloud_backup_snapshot_export_bucket” resource hangs indefinitely until I SIGINT with ctrl+c the terraform destroy command.
I’ve also tried to delete the export bucket by first finding the id of the bucket with atlas cli:
atlas backups exports buckets list
And then attempted to delete it with:
atlas backups exports buckets delete --bucketId=<bucket_id_from_above_command_here>
However, this resulted in an error:
Error: https://cloud.mongodb.com/api/atlas/v2/groups/<project_id>/backup/exportBuckets/<bucket_id> DELETE: HTTP 400 (Error code: “EXPORT_BUCKET_DELETE_FAILED”) Detail: Failed to delete export Bucket with ID <bucket_id>. Reason: Bad Request. Params: [<bucket_id>]
I’ve tried authenticating to atlas cli with api keys with Organization Owner and Project Owner permissions
So my question is:
How do I actually remove an export bucket without destroying my cluster?
What was the output here? Redact the "_id" and "iamRoleId"values within the results array.
Can you provide the full command here used? Include a replacement / dummy value for "exportBucketId" or be sure to redact the actual value used before posting here.
I have to redact more than your suggested redactions since this is a public forum and bucket names would expose information that I’m not allowed to share publicly