I'm having trouble setting up HTTPS for my AWS EC2 instance. In short, I'm running a program on an EC2 instance, and it's critical that I be able to transfer the data securely from clients to AWS.
What I've done so far:
On AWS:
- Launched an EC2 Instance (t2.micro, ubuntu). The instance is alive and well, and accessible through SSH.
- Created a public SSL certificate through Amazon's Certificate Manager, under www.ourdomain.com
- Created an internet-facing application load balancer with an HTTPS listener (on port 443), using the previous certificate
- Created a target group with our EC2 instance and added it to the load balancer
- For the load balancer security group, enabled inbound HTTPS from anywhere, and outbound HTTP and HTTPS to the security group of the EC2 instance
- For the instance security group, enabled inbound HTTPS from the load balancer security group
On GoDaddy:
- Created a CNAME record (host: www.ourdomain.com, value: load balancer DNS name)
Issues:
- Under the "Targets" tab for my target group, I see the following: "None of these Availability Zones contains a healthy target. Requests are being routed to all targets"
- Additionally, under the "Targets" tab of the target group, the info button for the instance says: "Health checks failed with these codes: [502]"
- If I check the domain on ssllabs.com, I get "Assessment failed: Unable to connect to the server"
I want to avoid using Route53 if possible, and unfortunately I can't find AWS documentation for this issue that doesn't involve Route53.
I'm not a networking or AWS expert, so it is entirely possible that something simple is missing. Any and all suggestions are greatly appreciated!