An Open Source Terraform module that creates Spaces on DigitalOcean.
Terraform documentation on Spaces
If you come across any problems, please open an issue.
Basic example
module "spaces-bucket" {
source = "rhysjson/spaces-bucket/digitalocean"
version = "0.1.0"
spaces = [{
"name" = "bucket-name"
"region" = "ams3"
"acl" = "private"
"cors_rule" = [{
allowed_headers = ["*"]
allowed_methods = ["GET"]
allowed_origins = ["*"]
max_age_seconds = 3000
}]
"lifecycle_rule" = {
"enabled" = true
"expiration" = {
days = 15
}
}
"force_destroy" = false
}]
}
If you're looking to try Digitalocean out, sign up here and get $100 free credit.
Name | Version |
---|---|
terraform | >= 1.0.1 |
digitalocean | ~> 2.0 |
Name | Version |
---|---|
digitalocean | 2.10.1 |
No modules.
Name | Type |
---|---|
digitalocean_spaces_bucket.spaces | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
spaces | List of Spaces you want to create | any |
n/a | yes |
spaces_default | Default list of Spaces variables. We don't need to pass anything to this variable. | object({ |
{ |
no |
Name | Description |
---|---|
bucket_domain_name | The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com) |
name | The name of the bucket |
region | The name of the region |
urn | The uniform resource name for the bucket |