Amazon web services AWS弹性IP网络vpc未连接到任何internet网关

Amazon web services AWS弹性IP网络vpc未连接到任何internet网关,amazon-web-services,amazon-ec2,elastic-ip,Amazon Web Services,Amazon Ec2,Elastic Ip,我对AWS帐户的访问权限有限 我已经创建了一个EC2实例,但是当我尝试关联一个弹性ip时,我得到了以下错误: An error occurred while attempting to associate the address Network vpc-(security id) is not attached to any internet gateway 您正在使用新的Amazon虚拟私有云,而不是EC2经典。 您正在使用的云缺少internet网关虚拟组件,该组件是从公共internet

我对AWS帐户的访问权限有限

我已经创建了一个EC2实例,但是当我尝试关联一个弹性ip时,我得到了以下错误:

An error occurred while attempting to associate the address
Network vpc-(security id) is not attached to any internet gateway

您正在使用新的Amazon虚拟私有云,而不是EC2经典。 您正在使用的云缺少internet网关虚拟组件,该组件是从公共internet访问云所必需的


你需要在你的私有云中添加一个连接到互联网的接口;有了这一点,您可以使用弹性IP(毕竟,它们是可在internet上寻址的;您的VPC实例可以有静态实例IP),并为internet地址添加路由条目(0.0.0.0/0,或更窄的空间)

发生此错误是因为VPC未与Internet网关关联。要解决这个问题,请转到VPC,然后单击Internet网关。如果不存在,请创建一个(可能需要管理员权限),然后将其附加到目标VPC-id。然后重试将弹性IP地址关联到EC2实例。希望有帮助:)