Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 1.45 KB

digitalocean_spaces_bucket.md

File metadata and controls

91 lines (68 loc) · 1.45 KB

digitalocean_spaces_bucket

back

Index

Terraform

terraform {
  required_providers {
    digitalocean = ">= 2.7.0"
  }
}

top

Example Usage

module "digitalocean_spaces_bucket" {
  source = "./modules/digitalocean/d/digitalocean_spaces_bucket"

  # name - (required) is a type of string
  name = null
  # region - (required) is a type of string
  region = null
}

top

Variables

variable "name" {
  description = "(required) - Bucket name"
  type        = string
}

variable "region" {
  description = "(required) - Bucket region"
  type        = string
}

top

Datasource

data "digitalocean_spaces_bucket" "this" {
  # name - (required) is a type of string
  name = var.name
  # region - (required) is a type of string
  region = var.region
}

top

Outputs

output "bucket_domain_name" {
  description = "returns a string"
  value       = data.digitalocean_spaces_bucket.this.bucket_domain_name
}

output "id" {
  description = "returns a string"
  value       = data.digitalocean_spaces_bucket.this.id
}

output "urn" {
  description = "returns a string"
  value       = data.digitalocean_spaces_bucket.this.urn
}

output "this" {
  value = digitalocean_spaces_bucket.this
}

top