Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > dd7204292d310452063d09b5de9c13b7 > files > 630

aws-cli-docs-1.16.163-1.mga7.noarch.rpm

**To allocate an Elastic IP address for EC2-Classic**

This example allocates an Elastic IP address to use with an instance in EC2-Classic.

Command::

  aws ec2 allocate-address

Output::

  {
      "PublicIp": "198.51.100.0",
      "Domain": "standard"
  }

**To allocate an Elastic IP address for EC2-VPC**

This example allocates an Elastic IP address to use with an instance in a VPC.

Command::

  aws ec2 allocate-address --domain vpc

Output::

  {
      "PublicIp": "203.0.113.0",
      "Domain": "vpc",
      "AllocationId": "eipalloc-64d5890a"
  }