AttachInternetGateway#

Description#

Attaches an internet gateway to a VPC thus enabling connectivity between the Internet and the VPC.

Request Parameters#

  • InternetGatewayId — The ID of the internet gateway.

    • Type: String

    • Required: Yes

  • VpcId — The ID of the VPC.

    • Type: String

    • Required: Yes

Response Elements#

  • requestId — The request ID.

    • Type: String

  • returnTrue is returned if the request succeeds and an error otherwise.

    • Type: Boolean

Examples#

c2-ec2 AttachInternetGateway InternetGatewayId igw-01234567 VpcId vpc-01234567