How to forward https traffic to launching new instances

0 votes
Hi,

We have created web based application to manage EC2 instance. Like we have start and stop EC2 instances time-based for all users. Basically our EC2 Nice-DCV Application have https (8443) port by default. Amazon recommends to use any port (higher than 1024), if dont want to use 8443 port for https connection. If you want to use Port 443, then you have to use Loadbalancer or Webproxy to achieve.

As per aws documents, we have planned to use Application Loadbalancer for my Application. My application can start / stop / terminate EC2 instances from my webportal.

So whenever admin start the instance for any user, then this instance IP should added with A records in Route53 for creating subdomain. So we can create instances, and assign domain for this instance.

We already created one ALB for our Webportal, Which have 443 port with rules: IF Host is one.example.com, then its forward to one Targetgroup (Which is IP based and Targets pointed to My webportal EC2 instance Private IP)

But only one thing, we have to achieve to forward 8443 port to 443 port using ALB for upcoming instances. Like whenever admin of my webportal starts EC2 instance for any user, then this instance should forward to 8443 port to 443 port.

How to achieve this one? Can any one help me to do?

Any boto3 script to automate this process?
Dec 3, 2020 in AWS by Lakshminarayanan
• 1,370 points
708 views

1 answer to this question.

0 votes
Hi@Lakshminarayanan,

You can do this with the routing table. Check the configuration of ALB. You may find this option.
answered Dec 3, 2020 by MD
• 95,440 points
Hi MD,

Can you tell me the steps to be done? Where is it located?
Hi,

You can find these options in EC2. Go to your load balancer and select ALB. There you can able to find configure routing and register targets. Configure your requirement there.

Related Questions In AWS

0 votes
1 answer
+1 vote
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

refer this link  https://aws.amazon.com/certificate-manager/faqs/ You can't install the certificates ...READ MORE

answered Jul 19, 2018 in AWS by Priyaj
• 58,090 points
1,571 views
0 votes
1 answer

How to make API Gateway accept http instead of https?

You can put a Cloudfront distribution in ...READ MORE

answered Aug 21, 2018 in AWS by Archana
• 4,170 points
1,676 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer
+1 vote
1 answer

How to forward S3 bucket logs to CloudTrail?

Hi@akhtar, To forward S3 bucket logs to CloudTrail, ...READ MORE

answered Jun 3, 2020 in AWS by MD
• 95,440 points
540 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP