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?

asked a year ago194 views
1 Answer
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
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions