2021-03-01 12:40:35 -08:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
archive = {
|
|
|
|
source = "hashicorp/archive"
|
|
|
|
}
|
|
|
|
aws = {
|
|
|
|
source = "hashicorp/aws"
|
|
|
|
}
|
2023-02-19 12:58:46 -08:00
|
|
|
namecheap = {
|
|
|
|
source = "namecheap/namecheap"
|
|
|
|
version = ">= 2.0.0"
|
|
|
|
}
|
2021-03-01 12:40:35 -08:00
|
|
|
}
|
2023-08-21 12:23:16 -07:00
|
|
|
|
|
|
|
backend "s3" {
|
|
|
|
bucket = "twipped-terraform"
|
|
|
|
key = "gdb/terraform.tfstate"
|
|
|
|
region = "us-east-1"
|
|
|
|
}
|
2021-03-01 12:40:35 -08:00
|
|
|
required_version = ">= 0.13"
|
|
|
|
}
|
2023-02-19 12:58:46 -08:00
|
|
|
|
|
|
|
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
|
2023-05-20 09:44:11 -07:00
|
|
|
client_ip = chomp(data.http.externalip.response_body)
|
2023-02-19 12:58:46 -08:00
|
|
|
use_sandbox = false
|
|
|
|
}
|