1 個回答
- 最新
- 最多得票
- 最多評論
0
No, it's not possible to assign an Elastic IP address to an instance directly. There is a 1:1 NAT operation that is provided by the Internet Gateway in your VPC that maps between the Elastic IP address and the private IP address.
The filtering mechanism between the internet and your instance is a Security Group - to allow traffic to your instance (in this case the virtual router); allow the appropriate protocols and ports in the security group.
相關內容
- 已提問 7 個月前
but why aws it not allowed to have the public ip directly in the virtual router??? It is something very strange for me, in digital ocean by default it is that way
That's just the way it works in AWS. Instances in a VPC have a private IP address. They can be assigned a public/elastic IP which is handled by doing 1:1 NAT at the Internet Gateway.