Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个 EBS 存储并将其连接到现有的 EC2 实例。
但是我在这里找不到任何 PHP 代码示例http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/index.html
You'll find that EBS management via API is part of the EC2 namespace.
Specifically:
Create volume: http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ec2.Ec2Client.html#_createVolume
Attach volume to instance: http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.Ec2.Ec2Client.html#_attachVolume