How to create Internet Gateway using AWS CLI?

0 votes
Please help me with the command to create an Internet gateway using AWS CLI. Thank you in advance.
Feb 21 in AWS by Radhika
40 views

1 answer to this question.

0 votes

It is simple to create an Internet Gateway. All you need to do is configure your AWS and use the following command:-

C:\Users\priyj_kumar>aws ec2 create-internet-gateway

This command will give you an output stating your Internet gateway ID.

{
    "InternetGateway": {
        "Attachments": [],
        "InternetGatewayId": "igw-0185c098195ba1d1a",
        "Tags": []
    }
}

Hope it helps.

answered Feb 21 by Priyaj
• 57,300 points

Related Questions In AWS

0 votes
1 answer

How to create a VPC using AWS CLI?

To create an Amazon VPC using AWS ...READ MORE

answered Feb 21 in AWS by Priyaj
• 57,300 points
114 views
0 votes
1 answer
0 votes
1 answer

How to create a DynamoDB using AWS CLI?

You can create a DynamoDB table using ...READ MORE

answered Feb 22 in AWS by Priyaj
• 57,300 points
86 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15 in AWS by Priyaj
• 57,300 points
1,015 views