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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则