diff --git a/mgmt/do-jeremydormitzer-com/terraform/data.tf b/mgmt/do-jeremydormitzer-com/terraform/data.tf index 8d58a05..e53cf88 100644 --- a/mgmt/do-jeremydormitzer-com/terraform/data.tf +++ b/mgmt/do-jeremydormitzer-com/terraform/data.tf @@ -42,3 +42,18 @@ data "terraform_remote_state" "wallabag" { key = "prod/wallabag.tfstate" } } + +data "terraform_remote_state" "freshrss" { + backend = "s3" + + config = { + skip_credentials_validation = true + skip_metadata_api_check = true + access_key = var.spaces_access_id + secret_key = var.spaces_secret_key + region = "us-east-1" + endpoint = "nyc3.digitaloceanspaces.com" + bucket = "jdormit-tf-state" + key = "prod/freshrss.tfstate" + } +} diff --git a/mgmt/do-jeremydormitzer-com/terraform/main.tf b/mgmt/do-jeremydormitzer-com/terraform/main.tf index b5aade0..485e2a7 100644 --- a/mgmt/do-jeremydormitzer-com/terraform/main.tf +++ b/mgmt/do-jeremydormitzer-com/terraform/main.tf @@ -14,7 +14,7 @@ resource "digitalocean_record" "top_level_a" { domain = digitalocean_domain.jeremydormitzer_com.name type = "A" name = "@" - value = "104.198.14.52" # Netlify load balancer + value = "104.198.14.52" # Netlify load balancer ttl = 3600 } @@ -91,3 +91,11 @@ resource "digitalocean_record" "wallabag" { value = data.terraform_remote_state.wallabag.outputs.ip_address ttl = 3600 } + +resource "digitalocean_record" "freshrss" { + domain = digitalocean_domain.jeremydormitzer_com.name + type = "A" + name = "rss" + value = data.terraform_remote_state.freshrss.outputs.ip_address + ttl = 3600 +}