Reputation: 2480
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
Reputation: 28911
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
Upvotes: 4