2023-01-28 03:08:56 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
digitalocean = {
|
2023-01-29 18:32:33 +00:00
|
|
|
source = "digitalocean/digitalocean"
|
2023-01-28 03:08:56 +00:00
|
|
|
version = "2.25.2"
|
|
|
|
}
|
|
|
|
acme = {
|
|
|
|
source = "vancluever/acme"
|
|
|
|
version = "~> 2.0"
|
|
|
|
}
|
2023-01-30 19:12:17 +00:00
|
|
|
namecheap = {
|
2023-01-31 01:19:08 +00:00
|
|
|
source = "namecheap/namecheap"
|
2023-01-30 19:12:17 +00:00
|
|
|
version = ">= 2.0.0"
|
|
|
|
}
|
2023-01-28 03:08:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-29 18:31:47 +00:00
|
|
|
provider "digitalocean" {
|
2023-01-29 18:32:33 +00:00
|
|
|
token = var.do_token
|
2023-01-29 18:31:47 +00:00
|
|
|
spaces_access_id = var.spaces_access_id
|
|
|
|
spaces_secret_key = var.spaces_secret
|
|
|
|
}
|
|
|
|
|
2023-01-28 03:08:56 +00:00
|
|
|
provider "acme" {
|
|
|
|
server_url = "https://acme-v02.api.letsencrypt.org/directory"
|
2023-01-29 18:31:47 +00:00
|
|
|
}
|
|
|
|
|
2023-01-30 19:12:17 +00:00
|
|
|
provider "namecheap" {
|
|
|
|
user_name = var.namecheap_user
|
2023-01-31 01:19:08 +00:00
|
|
|
api_user = var.namecheap_api_user
|
|
|
|
api_key = var.namecheap_api_key
|
2023-01-30 19:12:17 +00:00
|
|
|
}
|
|
|
|
|
2023-01-29 18:31:47 +00:00
|
|
|
variable "do_token" {}
|
|
|
|
variable "spaces_access_id" {}
|
2023-01-30 19:12:17 +00:00
|
|
|
variable "spaces_secret" {}
|
|
|
|
variable "namecheap_user" {}
|
|
|
|
variable "namecheap_api_user" {}
|
|
|
|
variable "namecheap_api_key" {}
|