2023-09-24 16:22:21 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
proxmox = {
|
|
|
|
source = "telmate/proxmox"
|
|
|
|
version = "2.7.4"
|
|
|
|
}
|
|
|
|
digitalocean = {
|
|
|
|
source = "digitalocean/digitalocean"
|
|
|
|
version = "~> 2.29.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
backend "s3" {
|
|
|
|
key = "bikeshed/terraform.tfstate"
|
|
|
|
bucket = "deploy-state"
|
|
|
|
region = "us-west-2"
|
|
|
|
endpoint = "https://sfo2.digitaloceanspaces.com"
|
|
|
|
skip_region_validation = true
|
|
|
|
skip_credentials_validation = true
|
|
|
|
skip_metadata_api_check = true
|
|
|
|
|
|
|
|
# This is actually not needed, but declaring it here helps me remember where its supposed to live.
|
|
|
|
# You gotta comment these out when initing the terraform backend? for some reason.
|
2024-01-01 05:18:46 +00:00
|
|
|
#shared_credentials_files = ["~/.aws/credentials"]
|
|
|
|
#shared_config_files = ["~/.aws/config"]
|
2023-09-24 16:22:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
provider "digitalocean" {
|
|
|
|
token = var.DO_PAT
|
|
|
|
}
|