Local Vars overrides

Add Cloudflare Access Application
This commit is contained in:
Alexander Hosking 2022-03-26 14:43:59 -04:00
parent e9f2cfac20
commit 2097d3cf7c
5 changed files with 18 additions and 14 deletions

View File

@ -0,0 +1,7 @@
resource "cloudflare_access_application" "money" {
zone_id = cloudflare_zone.ahosking_com.id
name = "money"
domain = "money.ahosking.com"
type = "self_hosted"
session_duration = "168h"
}

View File

@ -0,0 +1,5 @@
provider "cloudflare" {
# email = null
# api_key = null
api_token = null
}

View File

@ -21,10 +21,14 @@ terraform {
}
}
}
variable "CLOUDFLARE_ACCOUNT_ID" {}
variable "CLOUDFLARE_EMAIL" {}
variable "CLOUDFLARE_API_KEY" {}
variable "CLOUDFLARE_API_TOKEN" {}
provider "cloudflare" {
email = var.CLOUDFLARE_EMAIL
api_key = var.CLOUDFLARE_API_KEY
# email = var.CLOUDFLARE_EMAIL
# api_key = var.CLOUDFLARE_API_KEY
api_token = var.CLOUDFLARE_API_TOKEN
}

View File

@ -7,11 +7,6 @@ variable "aws_region" {
default = "us-east-1"
}
variable "CLOUDFLARE_ACCOUNT_ID" {}
variable "CLOUDFLARE_EMAIL" {}
variable "CLOUDFLARE_API_KEY" {}
variable "CLOUDFLARE_API_TOKEN" {}
variable "home_ip" {
}

View File

@ -1,7 +0,0 @@
resource "cloudflare_access_application" "influx" {
zone_id = cloudflare_zone.ahosking.id
name = ""
domain = ""
type = "self_hosted"
sesion_duration = ""
}