cloudposse / terraform-aws-cloudfront-cdn

Terraform Module that implements a CloudFront Distribution (CDN) for a custom origin.
https://cloudposse.com/accelerate
Apache License 2.0
99 stars 121 forks source link

Do not try to create the DNS records when `aliases` is specified. #70

Open vikas027 opened 3 years ago

vikas027 commented 3 years ago

Describe the Feature

Do not try to create the DNS records when aliases is specified.

Expected Behavior

I should be able to use aliases without creating them using this module.

Use Case

As of now, if you specify aliases, the module tries to find the R53 zone and create the record. In my case, my R53 zone is in a different account which is why fails with the below error

  on .terraform/modules/waf.cdn.dns/main.tf line 1, in data "aws_route53_zone" "default":
   1: data "aws_route53_zone" "default" {

Describe Ideal Solution

I would like to have one of these options

Alternatives Considered

Create the aliases manually or some script outside of the terraform module

nnsense commented 1 year ago

Isn’t this option doing that?

dns_aliases_enabled: Set to false to prevent dns records for aliases from being created