Dhruv
Dhruv

Reputation: 43

Using AWS CLI from EC2 instance without internet access

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.

Thanks,

Upvotes: 4

Views: 6335

Answers (2)

jzonthemtn
jzonthemtn

Reputation: 3404

VPC endpoints create a private connection between your VPC and an AWS service. However, currently the only supported service is S3 and none of the services listed in your question.

Currently, we support endpoints for connections with Amazon S3 only. We'll add support for other AWS services later. Endpoints are supported within the same region only.

Upvotes: 0

helloV
helloV

Reputation: 52393

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 Regions and Endpoints

Upvotes: 4

Related Questions