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?

feita há um ano198 visualizações
1 Resposta
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
ESPECIALISTA
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas