Table Of Contents


User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . ec2 ]



Describes one or more of your egress-only internet gateways.

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.


[--dry-run | --no-dry-run]
[--egress-only-internet-gateway-ids <value>]
[--max-results <value>]
[--next-token <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]


--dry-run | --no-dry-run (boolean)

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

--egress-only-internet-gateway-ids (list)

One or more egress-only internet gateway IDs.


"string" "string" ...

--max-results (integer)

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000. If MaxResults is given a value larger than 1000, only 1000 results are returned.

--next-token (string)

The token to retrieve the next page of results.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.


To describe your egress-only Internet gateways

This example describes your egress-only Internet gateways.


aws ec2 describe-egress-only-internet-gateways


  "EgressOnlyInternetGateways": [
          "EgressOnlyInternetGatewayId": "eigw-015e0e244e24dfe8a",
          "Attachments": [
                  "State": "attached",
                  "VpcId": "vpc-0c62a468"


EgressOnlyInternetGateways -> (list)

Information about the egress-only internet gateways.


Describes an egress-only internet gateway.

Attachments -> (list)

Information about the attachment of the egress-only internet gateway.


Describes the attachment of a VPC to an internet gateway or an egress-only internet gateway.

State -> (string)

The current state of the attachment. For an internet gateway, the state is available when attached to a VPC; otherwise, this value is not returned.

VpcId -> (string)

The ID of the VPC.

EgressOnlyInternetGatewayId -> (string)

The ID of the egress-only internet gateway.

NextToken -> (string)

The token to use to retrieve the next page of results.