在没有Internet访问的情况下从EC2实例使用AWS CLI [英] Using AWS CLI from EC2 instance without internet access

查看:52
本文介绍了在没有Internet访问的情况下从EC2实例使用AWS CLI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用AWS CLI从EC2 linux实例调用不同的服务,例如SQS,EC2,SNS?
从中调用AWS CLI命令的EC2实例无法访问Internet.它在专用子网中.它没有使用Internet网关或NAT.

Is there a way to use AWS CLI to call different services such as SQS, EC2, SNS from EC2 linux instance?
The EC2 instance from where the AWS CLI command are invoked does not have access to internet. It is in private subnet. It is not using internet gateway or NAT.

谢谢

推荐答案

不可能. CLI必须访问您提到的所有服务的API端点.为此,CLI需要Internet访问.内部元数据服务器是唯一无需互联网即可访问的服务.

Not possible. The CLI has to access the API endpoints for all the services you mentioned. For that the CLI needs internet access. Only service it can access without internet is the internal metadata server.

AWS区域和端点

这篇关于在没有Internet访问的情况下从EC2实例使用AWS CLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆