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?