2

我想创建一个 EBS 存储并将其连接到现有的 EC2 实例。

但是我在这里找不到任何 PHP 代码示例http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/index.html

4

1 回答 1

4

You'll find that EBS management via API is part of the EC2 namespace.

Specifically:

  1. Create volume: http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ec2.Ec2Client.html#_createVolume

  2. Attach volume to instance: http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ec2.Ec2Client.html#_attachVolume

于 2013-08-16T16:06:01.507 回答