- Newest
- Most votes
- Most comments
Is your domain set up incorrectly?
Have you correctly configured EC2 with a public domain?
Also, how do you set up SSL certificates?
If I make the following assumptions:
- Your VPC is configured with various subnets either configured as public or private.
- Your EC2 instance is installed in one of the public subnets. From your description, it appears that your VPC, EC2 and API Gateway function are configured correctly. First I would ask the following questions:
- Is your EC2 instance have an Elastic IP address assigned to it?
- Do you have a domain that you have control over the DNS server for it?
The issue you describe indicates that your EC2 instance doesn't have an Elastic IP and your DNS configuration is not set up (or hasn't propagated) yet. For your HTTP conversion, you would have to configure the webserver to redirect traffic from HTTP to HTTPS and have a valid SSL certificate.
As an alternative, you could use the API gateway as a proxy to your EC2 instance and then apply the SSL certificate to the API Gateway.. This would also allow you to deploy your EC2 instance in a Private subnet and not need an Elastic IP address.
Hope this helps,
answered 3 years ago
Relevant content
asked 3 years ago
