2020-12-03 18:35:17 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
digitalocean = {
|
|
|
|
source = "digitalocean/digitalocean"
|
2022-05-12 19:16:55 +00:00
|
|
|
version = "~> 2.19.0"
|
2020-12-03 18:35:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# This DO Spaces bucket is created via main.tf, so to bootstrap this
|
|
|
|
# module comment out the following backend configuration, run
|
|
|
|
# Terraform, then uncomment it and run terraform init again
|
|
|
|
backend "s3" {
|
|
|
|
skip_credentials_validation = true
|
|
|
|
skip_metadata_api_check = true
|
|
|
|
# Need to specify an AWS region to stop Terraform complaining
|
|
|
|
region = "us-east-1"
|
|
|
|
endpoint = "nyc3.digitaloceanspaces.com"
|
|
|
|
bucket = "jdormit-tf-state"
|
|
|
|
key = "mgmt/do-spaces.tfstate"
|
|
|
|
}
|
|
|
|
}
|