HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/ec2/create-vpn-gateway.rst
**To create a virtual private gateway**

This example creates a virtual private gateway.

Command::

  aws ec2 create-vpn-gateway --type ipsec.1

Output::

  {
      "VpnGateway": {
          "AmazonSideAsn": 64512,
          "State": "available",
          "Type": "ipsec.1",
          "VpnGatewayId": "vgw-9a4cacf3",
          "VpcAttachments": []
      }
  }

**To create a virtual private gateway with a specific Amazon-side ASN**

This example creates a virtual private gateway and specifies the Autonomous System Number (ASN) for the Amazon side of the BGP session.

Command::

  aws ec2 create-vpn-gateway --type ipsec.1 --amazon-side-asn 65001

Output::

  {
      "VpnGateway": {
          "AmazonSideAsn": 65001,
          "State": "available",
          "Type": "ipsec.1",
          "VpnGatewayId": "vgw-9a4cacf3",
          "VpcAttachments": []
      }
  }