'configure subdomains in aws to hit an s3 endpoint
s3 static website is configured to a domain name, and i need to configure subdomains for this site. please help me understand how to achieve this thing. i have a yml file inside of which script is like this
script:
- cd build
- aws s3 cp . s3://app.test.xyz/ --metadata-directive REPLACE --cache-control max-age=0 --recursive --include "*"
do we need to provide wildcard here only like (s3://*.test.xyz/) or do i have to use route53 service, if so also explain how to configure route 53 with this s3 site.
Solution 1:[1]
If you want to accomplish what you are asking you need to register a domain name using Route53, then you will get a hosted zone that matches your domain name. Then add an alias record for your root domain(root static website) and your subdomain bucket(the bucket you configured to redirect requests to your root bucket). I hope this helps. check from aws docs
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
