HTTPS: Add an HTTPS Endpoint
Explore the steps to add an HTTPS endpoint in AWS by updating deployment scripts, configuring certificates, and modifying load balancers. Understand how to secure traffic with HTTPS ports and manage load balancer health checks to ensure reliable application scaling.
We'll cover the following...
We'll cover the following...
Objective
- Migrate our endpoint from HTTP to HTTPS.
Steps
- Add an HTTPS endpoint.
Adding the HTTPS endpoint #
We will now update our deploy-infra.sh script to retrieve the certificate ARN. This should go at the top of the script, and depends on the DOMAIN environment variable.
Line #3: Newly added environment variable holding our certificate.
We then have to pass the certificate ARN as a parameter to main.yml.
Line #13: The certificate ARN.
We also have to add this as a parameter in the main.yml template. ...