AWS Elastic IP Network vpc未连接到任何互联网网关 [英] AWS Elastic IP Network vpc is not attached to any internet gateway
问题描述
我对AWS账户的访问权限受到限制。
I have given a limited access to a AWS account.
我已经创建了一个EC2实例,但是当我尝试关联弹性ip时,出现以下错误:
I already created an EC2 instance but when I try to associate an elastic ip, I got the error below:
An error occurred while attempting to associate the address
Network vpc-(security id) is not attached to any internet gateway
推荐答案
您正在使用新的Amazon Virtual Private Cloud而不是EC2 Classic。
您正在使用的云缺少可从公共Internet访问云所需的Internet网关虚拟组件。
You are using the new Amazon Virtual Private Cloud instead of the EC2 Classic. The cloud you are using lacks the internet gateway virtual component that is necessary for the cloud to be reachable from the public internet.
您需要添加<一个href = http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Internet_Gateway.html rel = noreferrer>互联网网关到您的私有云,以便它能够连接到互联网;有了该地址,您就可以使用弹性IP(毕竟,它们是可Internet寻址的;您的VPC实例可以具有静态实例IP),并为Internet地址添加路由条目(0.0.0.0/0或更窄的空间)。
You need to add an internet gateway to your private cloud for it to be able to connect to internet; with that in place, you can use Elastic IPs (after all, they are internet addressable; your VPC instances can have static instance IPs), and add a routing entry for internet addresses (0.0.0.0/0, or a narrower space).
这篇关于AWS Elastic IP Network vpc未连接到任何互联网网关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!