Issues accessing my AWS EC2 Issue

0

I have couple of questions. I am trying to access an application hosted on my EC2 instance from outside the server. Q1: My Auto-assigned IP address is constantly changing, which means i need to change my access URL every day. Is there a way to have the same public IP address? Q2: Is it possible to use self signed certificates in IIS for access using https to my EC2 instance

Convex
已提問 6 個月前檢視次數 190 次
1 個回答
0

Q1: My Auto-assigned IP address is constantly changing, which means i need to change my access URL every day.

Is the EC2 instance being stopped and restarted daily? If it is then this is expected behaviour https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#concepts-public-addresses

  • We release your instance's public IP address when it is stopped, hibernated, or terminated. Your stopped or hibernated instance receives a new public IP address when it is started.

Is there a way to have the same public IP address?

You can bring your own IP (BYOIP) from an address range that you own https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html

Or you can allocate an Elastic IP address to the EC2 instance, which will stay the same over time https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#eip-basics

However, note that the elastic IP incurs a charge during times that your EC2 instance is not running. If your instance is regularly offline (and the fact that its public IP is changing daily suggests that this might be happening) then this needs to be taken into consideration.

More on elastic IP pricing is here https://repost.aws/knowledge-center/elastic-ip-charges

Another option is putting a load balancer in front of the EC2. This would, in effect, allow the EC2 instance to be accessed using the same IP address. The load-balancer will need to be always-on (and thus accruing a charge) for this to be useful.

Q2: Is it possible to use self signed certificates in IIS for access using https to my EC2 instance

Certainly can, no restriction on that. In this regard you can consider the EC2 to be like any other Windows host running IIS.

profile picture
專家
Steve_M
已回答 6 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南