-
Hi, I want to create an entry in Route53 which is an alias to a Cloudfront distribution, but it looks like the module (networking/route53) doesn't support it. Could you confirm this and if there is a workaround? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
@arsci can you confirm? |
Beta Was this translation helpful? Give feedback.
-
Anything regarding this? It's quite limiting not being able to define alias for apex domain @arsci @gitsstewart |
Beta Was this translation helpful? Give feedback.
-
Hi @fsanzdev, are you able to create an alias record by adding an alias block within the subdomain block as the variables passed into the module? I tested this today in my own account, and I was able to a route53 alias A record pointed to a CloudFront distribution. This link should go directly to the module variable input comments on how to structure this input to create an alias record. Alternatively, if you used something like the Let me know if this helps! I'm happy to share the code I used to test the |
Beta Was this translation helpful? Give feedback.
-
Hi @arsci, thanks for your reply. Yes, in subdomains it's available, but as I mentioned in the title the issue is in the apex domain section. It looks like it's not possible to set aliases in apex domains which limits the configuration options for Cloudfront in this case, but for any kind of aliases in any other cases. |
Beta Was this translation helpful? Give feedback.
Ok, we just found the issue. We had several entries in the apex record (only one of them had an alias) but all of them need the entry for an alias even if it's empty (alias={})
I think this behaviour should be documented somewhere in the variables.tf file where there are several samples and it explicitly says
# (Optional) An alias block.
when referring to the alias entry.