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?

질문됨 일 년 전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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠