mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
38 lines
753 B
HCL
38 lines
753 B
HCL
terraform {
|
|
required_providers {
|
|
archive = {
|
|
source = "hashicorp/archive"
|
|
}
|
|
aws = {
|
|
source = "hashicorp/aws"
|
|
}
|
|
namecheap = {
|
|
source = "namecheap/namecheap"
|
|
version = ">= 2.0.0"
|
|
}
|
|
}
|
|
|
|
backend "s3" {
|
|
bucket = "twipped-terraform"
|
|
key = "gdb/terraform.tfstate"
|
|
region = "us-east-1"
|
|
}
|
|
required_version = ">= 0.13"
|
|
}
|
|
|
|
provider "aws" {
|
|
region = var.region
|
|
}
|
|
|
|
data "http" "externalip" {
|
|
url = "http://ipv4.icanhazip.com"
|
|
}
|
|
|
|
provider "namecheap" {
|
|
user_name = var.namecheap.username
|
|
api_user = var.namecheap.username
|
|
api_key = var.namecheap.apikey
|
|
client_ip = chomp(data.http.externalip.response_body)
|
|
use_sandbox = false
|
|
}
|