deployments/cas_validator/main.tf

47 lines
1.2 KiB
HCL

terraform {
cloud {
organization = "home_assistant"
workspaces {
name = "cas_validator"
}
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
module "webservice_cas_validator" {
source = "../.modules/webservice"
service_name = "CAS-Validator"
subdomain = "cas-validator"
container_image = "codenotary/immuproof"
container_version = "v0.0.11"
port = 8091
container_definitions = {
environment : [
{ name : "IMMUPROOF_HOST", value : "cas.codenotary.com" },
{ name : "IMMUPROOF_PORT", value : "443" },
{ name : "IMMUPROOF_API_KEY", value : var.cas_api_key },
{ name : "IMMUPROOF_WEB_TITLE_TEXT", value : "Home Assistant service validator" },
{ name : "IMMUPROOF_WEB_HOSTED_BY_TEXT", value : "Home Assistant Community" },
{ name : "IMMUPROOF_WEB_HOSTED_BY_LOGO_URL", value : "https://www.home-assistant.io/images/home-assistant-logo.svg" }
]
}
}