Skip to content

Commit

Permalink
feat: aws redirect records
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Apr 25, 2024
1 parent 313e8a5 commit 656c907
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,22 @@ resource "cloudflare_record" "web_distribution_cn" {
proxied = "false"
}

resource "cloudflare_record" "web_distribution_naked_aws" {
zone_id = local.zone
name = "aws"
value = "192.0.2.1"
type = "A"
proxied = "true"
}

resource "cloudflare_record" "web_distribution_aws" {
zone_id = local.zone
name = "www.aws"
value = "192.0.2.1"
type = "A"
proxied = "true"
}

resource "cloudflare_ruleset" "redirect_rules" {
zone_id = local.zone
kind = "zone"
Expand Down

0 comments on commit 656c907

Please sign in to comment.