Rapid Docker on AWS

Video Course

3.5 Configuring a custom domain name and HTTPS: Route 53 and Certificate Manager

Dependency This section requires you to buy or own a domain name (e.g., cloudonaut.io). The easiest way to follow this section is to register a domain name with Route 53. If you haven’t done so, please follow the AWS documentation: Registering a New Domain.

Get hosted zone id

aws route53 list-hosted-zones

Deploy to AWS

aws cloudformation deploy --template-file .template.yml --stack-name php-basic --capabilities CAPABILITY_IAM --parameter-overrides HostedZoneId=$HOSTED_ZONE_ID SubDomainNameWithDot=app.
aws cloudformation describe-stacks --stack-name php-basic --query 'Stacks[0].Outputs[?OutputKey==`Url`].OutputValue' --output text

Used modules