commitdev / terraform-aws-zero

Zero modules for the AWS EKS Stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add domain aliases (www.) support for s3_hosting module

bmonkman opened this issue · comments

We should be able to provide a list of domain aliases to s3_hosting to allow us to specify hostnames in the case where we want to have a single bucket with multiple names. For example, commit.dev and www.commit.dev

@bmonkman to clarify, this is CF (www) -> S3 -> redirect -> CF (@) -> S3?

From a client browser PoV it's just a 301 redirect from www.domain.com to domain.com and behind the scenes it will be all cached in cloudfront.