Add SSL Certificate to my domain + AWS DNS - amazon-web-services

I have a Classic load balancer configured on my AWS webservices at xxx-xxx.amazonaws.com
and have also added route 53 to configure. But it seems there is no traffic moving from my domain to load balancer DNS. Need Help.
On my EC2 Server, I have added a MERN Stack application and used nginx to route the traffic from :80 to :8080. Next, a Elastic IP address is added to ec2 server.
A certificate is created using AWS's ACM and attached to the classic load balancer.
The domain records are handled by AWS's route 53. Domain name is aamchymumbai.com.
Thank you!
I did get a fix using CLoudfare.
Another follow up question, I have now. How to can I redirect domain.com to ec2-server.com:8080 and sub-domain.com to ec2-server.com:5000 using nginx + cloudfare?

Related

Where in AWS is the Elastic Beanstalk Subdomain CNAME Record, and How to Add SSL to it?

Your Elastic Beanstalk environment's Domain name says:
To route users to your environment, Elastic Beanstalk registers a
CNAME record that points to your environment's load balancer. You can
see URL of your environment's application with the current value of
the CNAME in the environment overview page of the Elastic Beanstalk
console.
My simple questions are:
where is this CNAME record located in AWS?
is it possible to make this subdomain SSL (redirect http to https)?
Why would I want to do this?
My application works fine, but Elastic Beanstalk says my health is "Severe" (red exclamation) when the only thing wrong is that I intentionally made my real domain (the non-Elastic Beanstalk subdomain) I have in Route 53 redirect to https (443) by modifying the load balancer. Now this Elastic Beanstalk subdomain also routes to https when it's not setup, which is what causes the health error.
where is this CNAME record located in AWS?
It is AWS-owned domain, so AWS holds it in its systems.
is it possible to make this subdomain SSL (redirect http to https)?
No, its not, because it belongs to AWS, not you. For proper HTTPS, you need your own domain that you can control. If you have such a domain, you can free SSL certificate for it from AWS ACM.

How to point my domain with SSL to Elastic Beanstalk without Route 53?

I am currently doing an internship and I was trying to put https on our AWS beanstalk environment.I have an external domain name and i create the certificate via AWS Certificate Manager. I configured the load balancer of my environment to accept https and put the certificate generated by Amazon. But when I try to connect in https, I get a browser message telling me that the connection is not private (NET::ERR_CERT_COMMON_NAME_INVALID).
I don't want to use AWS route 53 to manage my domain name with AWS elastic beanstalk. I would like to know if there is a procedure to do this without route 53.
I have already searched the internet for a solution but I only found this:
Link to stackoverflow question

Why the AWS load balancer not able to make my website secure?

I have configured the AWS load balancer to secure my website, i.e. to resolve through "https". But when I use(https://www.schoolnskill.com), it gives
503 Service Temporarily Unavailable.
So I have followed the below steps to configure my environment.
I created a domain name in route53 and have been issued with a SSL/TLS certificate through AWS Certificate manager.
For my load balancer I set up listener for https:443 and attached the above certificate with it.
The security group for my ec2 instances allow http and https requests (although I believe the load balancer ec2 target will communicate using http).
I have attached a screenshot with the summary of the configuration.
Then in the ROUTE 53, I edited the 'A' record of 'www.schoolnskill.com'. Below are the changes I made.
Alias:- yes
Alias target:- chosen the application LB
Routing policy:- simple
Then save the settings.
I can see that whenever I type 'http://www.schoolnskill.com', it is redirected as 'https://www.schoolnskill.com'
Health_CHK
Thank you,
The problem was the availability zones. The AZ of my load balancer was different from that of EC2 instance. I matched the AZ of ALB to my EC2, and it worked.
Thank you,

how to connect domain name to AWS Application Load Balancer?

I have a simple AWS setup of 2 VMs hosting a WebApp. An Application Load Balancer is in-front of these machines. I can access the DNS name of the Load Balancer and can reach to the WebApp.
Now, I want to connect to my app with a domain name hosted on Godaddy. I tried to simply create CNAME (as no Elastic IP on Application LB) with the LB's DNS name, but it didn't work.
What am I missing ? I tried with godaddy support but already wasted 7 days with not solution.
I want to put SSL certificate also on ALB. Should I be aware of anything specific in this setup?
The problem was, I was trying to CNAME for root level domain. Now, I created an alias in Route 53 and used AWS's nameservers on Godaddy to forward request there.

AWS Route 53 not routing to Load balancer

I have a domain at Godaddy, an AWS elastic load balancer pointing to Elastic Beanstalk.
I am using Route 53 to route requests to my domain to load balancer, the nameservers of Route 53 have been updated on godaddy and it's been more than 48 hours. (I even got confirmation email)
My domain is https://sreeram.rocks/
My website is running successfully at public ip: http://13.126.165.226
But for some reason domain name is not working. Can someone say Am I missing out on something that I need to configure?
Route 53:
Godaddy DNS
Thanks in advance
You are using https, when you are using the https://sreeram.rocks/ address and http when you are using the ip, http://13.126.165.226. You need to add a certificate to your domain, you can easily do that in the certificate manager in AWS. You then need to add the domain to the elastic load balancer once it is verified.
This assuming that you have setup everything else correct with target group etc. I assume that 13.126.165.226 is one of the load balancers IP addresses and not the server itself.