digitalocean_spaces_bucket

Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question is not managed by Terraform or you need to utilize any of the bucket's data.

Example Usage

Get the bucket by name:

data "digitalocean_spaces_bucket" "example" {
  name   = "my-spaces-bucket"
  region = "nyc3"
}

output "bucket_domain_name" {
  value = data.digitalocean_spaces_bucket.example.bucket_domain_name
}

Argument Reference

The following arguments must be provided:

Attributes Reference

The following attributes are exported: