Skip to content

opsd-io/terraform-module-digitalocean-backend

Repository files navigation

OPSd - the unique and effortless way of managing cloud infrastructure.

Meet OPSd. The unique and effortless way of managing cloud infrastructure.

terraform-module-digitalocean-backend

Introduction

A Terraform module designed to provision an S3 bucket on DigitalOcean specifically tailored for storing Terraform state files.

Usage

module "tfstate_backend" {
  source = "github.com/opsd-io/terraform-module-digitalocean-backend?ref=VERSION"

  name   = "terraform-backend-example2"
  region = "nyc3"
}

IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.

Requirements

Name Version
terraform >= 1.6.3
digitalocean >= 2.37.1

Providers

Name Version
digitalocean >= 2.37.1

Modules

No modules.

Resources

Name Type
digitalocean_spaces_bucket.state resource

Inputs

Name Description Type Default Required
name The name of the bucket. string n/a yes
noncurrent_version_expiration Specifies the number of days after which an object's non-current versions expire. number 90 no
region The region where the resources resides. string n/a yes
versioning Enable bucket versioning. bool true no

Outputs

Name Description
backend_config The backend configuration, which can be saved to backend.tf file.
bucket_domain_name The FQDN of the bucket.
endpoint The FQDN of the bucket without the bucket name.
name The name of the bucket.
region The region where the resources resides.
urn The uniform resource name of the bucket.

Examples of usage

Do you want to see how the module works? See all the usage examples.

Related modules

The list of related modules (if present).

Contributing

If you are interested in contributing to the project, see see our guide.

Support

If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.

If you want to discuss something in person, you can join our community on Slack.

License

Apache License 2.0