Skip to content

Commit

Permalink
Add Cloudflare A records for AWS and Vultr origins
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Jan 6, 2025
1 parent 77a4ed7 commit 93fe287
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/cloudflare/domains/mudev.cc/records/a.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
resource "cloudflare_record" "mudev_cc_record_a_aws_origin" {
name = "aws-ec2-1-origin"
proxied = true
ttl = 1
type = "A"
content = var.mudev_aws_1_instance_ipv4
zone_id = var.cloudflare_zone_id
}

resource "cloudflare_record" "mudev_cc_record_a_api" {
name = "api"
proxied = true
Expand All @@ -7,6 +16,15 @@ resource "cloudflare_record" "mudev_cc_record_a_api" {
zone_id = var.cloudflare_zone_id
}

resource "cloudflare_record" "mudev_cc_record_a_vultr_origin" {
name = "vultr-origin"
proxied = true
ttl = 1
type = "A"
content = var.mudev_vultr_1_instance_ipv4
zone_id = var.cloudflare_zone_id
}

resource "cloudflare_record" "mudev_cc_record_a_status" {
name = "status"
proxied = true
Expand Down

0 comments on commit 93fe287

Please sign in to comment.