how to disable public ip from existing aws ec2 instance

0

How to disable public ip from existing aws ec2 instance Enter image description here

mitesh
질문됨 6달 전1359회 조회
2개 답변
0

Hello.

As @Steve_M says, you can't disable automatic public IPv4 for EC2 that's already up and running.
So, if you currently want to disable it, as answered at the URL below, create an AMI from an existing EC2 and configure it so that public IPv4 is not set when launching a new EC2 from that AMI.
https://repost.aws/questions/QUVmpO9BWGSuGwQh5tXk3f5w/how-to-remove-ipv4-public-ip-address-from-ec2-instances-before-february-2024-ipv6#ANm63x9ElRQDysJmJxm_zw5A

profile picture
전문가
답변함 6달 전
  • Exactly. I disabled auto ipv4 assignment and made a new instance with ipv6 only, using the root volume from the previous instance, so there's only internal ipv4 and a public ipv6. However, be careful, a lot of stuff doesn't seem to be working well with ipv6 on AWS, for example SES. It's such a pain to deal with IPv6, especially if AWS ain't even ready themselves.

0

The only way the public IP address can be released is if the instance is stopped or hibernated, or if an elastic IP becomes associated with the instance.

Otherwise it doesn't appear this is possible.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html

You cannot manually associate or disassociate a public IP (IPv4) address from your instance.

profile picture
전문가
Steve_M
답변함 6달 전
profile picture
전문가
검토됨 6달 전

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

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

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

관련 콘텐츠