copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Multiple domain aliases support for Static Site

Open mikereinhold opened this issue 2 years ago • 2 comments

For use cases where a static site must be accessible under multiple domain names:

CloudFront supports up to 100 alternate domain names with the default quota.

ACM supports up to 100 domain names (only 10 with the default quota).

Currently the Service HTTP alias option for static sites does not support multiple domain aliases:

Static site manifest

http:
  alias: 'example.com'

The Static Site manifest is defined to only allow a single string: static_site.go

type StaticSiteHTTP struct {
	Alias string `yaml:"alias"`
}

mikereinhold avatar Aug 26 '23 12:08 mikereinhold

Hi @mikereinhold, this looks like a sensible enhancement to me. There shouldn't be any reason in CloudFront that we should limit you to one custom domain.

bvtujo avatar Aug 29 '23 13:08 bvtujo

I would really like to see this improvement be put in. Right now we have no way to add a second domain like if we want to cover www, or have environment URLs along with a production ready URL. If I manually modify cloudfront I risk copilot undoing it.

surrealchemist avatar Sep 16 '24 19:09 surrealchemist