2021-10-13 15:00:41 +00:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
aws = {
|
|
|
|
source = "hashicorp/aws"
|
2022-03-26 17:56:42 +00:00
|
|
|
version = "~> 3.0"
|
2021-10-13 15:00:41 +00:00
|
|
|
}
|
|
|
|
cloudflare = {
|
|
|
|
source = "cloudflare/cloudflare"
|
2022-03-26 17:56:42 +00:00
|
|
|
version = "~> 3.0"
|
2021-10-13 15:00:41 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-26 17:56:42 +00:00
|
|
|
required_version = ">= 1.1.7"
|
2021-10-13 15:00:41 +00:00
|
|
|
}
|
|
|
|
|
2021-06-30 19:30:46 +00:00
|
|
|
terraform {
|
|
|
|
backend "remote" {
|
|
|
|
organization = "AHosking"
|
|
|
|
|
|
|
|
workspaces {
|
|
|
|
name = "terraform"
|
2021-10-13 15:00:41 +00:00
|
|
|
}
|
2021-06-30 19:30:46 +00:00
|
|
|
}
|
|
|
|
}
|
2021-10-13 15:00:41 +00:00
|
|
|
|
2019-12-29 07:15:42 +00:00
|
|
|
provider "cloudflare" {
|
2021-10-13 15:00:41 +00:00
|
|
|
email = var.CLOUDFLARE_EMAIL
|
|
|
|
api_key = var.CLOUDFLARE_API_KEY
|
2021-06-30 19:39:22 +00:00
|
|
|
api_token = var.CLOUDFLARE_API_TOKEN
|
2017-11-28 06:04:25 +00:00
|
|
|
}
|
2017-01-31 07:51:16 +00:00
|
|
|
|
2019-12-29 07:15:42 +00:00
|
|
|
provider "aws" {
|
|
|
|
region = "us-east-1"
|
|
|
|
|
|
|
|
access_key = var.aws_access_key
|
|
|
|
secret_key = var.aws_secret_key
|
2021-10-13 15:00:41 +00:00
|
|
|
|
|
|
|
|
2019-12-29 07:15:42 +00:00
|
|
|
skip_credentials_validation = true
|
2021-10-13 15:00:41 +00:00
|
|
|
skip_region_validation = true
|
|
|
|
skip_requesting_account_id = true
|
|
|
|
skip_metadata_api_check = true
|
2021-01-12 03:46:38 +00:00
|
|
|
}
|