Does eb deploy change the instance's public IP or not?

0

Why this question?

If eb deploy does change the IP address of ec2 instance then it is okay to use eb ssh and then select the instance number or id, depending upon how many instances are there in a single environment.

If not, why not just directly ssh -i <key.pem> ec2-user@<instance-ip>

Am I missing something here?

已提問 1 年前檢視次數 198 次
1 個回答
0

depending on the Elastic Beanstalk deployment policy you have selected for your environment, this can cause the replacement of the instances. and it will cause the IP address to change.

My recommendation is to not use public subnets for your instances to prevent risks and use the SSM session manager to connect to the instances if needed.

profile picture
專家
已回答 1 年前

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

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

回答問題指南

相關內容