Creates the Amazon S3 storage location for the account.
This location is used to store user log files.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Creates a new application version.
// Instantiate the class
$bean = new AmazonElasticBeanstalk();
// Create a new S3 storage location for use with Elastic Beanstalk.
$s3_bucket = (string) $bean->create_storage_location()->body->S3Bucket()->first();
$response = $bean->create_application_version('my-application', '1.0', array(
'Description' => 'Version 1.0 of the application.',
'SourceBundle' => array(
'S3Bucket' => 'elasticbeanstalk-us-east-1',
'S3Key' => 'resources/sampleapp.war'
),
'AutoCreateApplication' => 'true'
));
// Success?
var_dump($response->isOK());
Result:
bool(true)
Related Methods
Source
Method defined in services/elasticbeanstalk.class.php | Toggle source view (6 lines) | View on GitHub

