On AWS, I have VPC containing public and private subnet. Internet Gateway and Routing Tables are configured. I have configured Windows AWS EC2 instance in private subnet. Necessary IAM role, System Manager and Session Manager is configured and working. Security group allows HTTPS requests from anywhere to port 443. I have hosted website in IIS on port 443.
I want to access this website from any public IP through Public IPv4 DNS assigned by AWS. With above setup its not working.
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
Your EC2 instance is in a private network which means that it is not accessible from the Internet. This is the explicit purpose of using a private subnet.
Your options are:
You can add a secondary network interface to the instance. Put the primary ENI in the public subnet and the second ENI in the private subnet. Assign appropriate values in the respective security groups.