Saqib
Saqib

Reputation: 2480

Create an EBS volume using AWS SDK for PHP 2

I want to create an EBS storage and connect it to existing EC2 instance.

However I am unable to find any PHP code sample here http://docs.aws.amazon.com/aws-sdk-php-2/guide/latest/index.html

Upvotes: 2

Views: 712

Answers (1)

jszobody
jszobody

Reputation: 28911

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

Upvotes: 4

Related Questions