CreateStorageLocation - AWS Elastic Beanstalk

CreateStorageLocation

Creates a bucket in Amazon S3 to store application versions, logs, and other files used by Elastic Beanstalk environments. The Elastic Beanstalk console and EB CLI call this API the first time you create an environment in a region. If the storage location already exists, CreateStorageLocation still returns the bucket name but does not create a new bucket.

Response Elements

The following element is returned by the service.

S3Bucket

The name of the Amazon S3 bucket created.

Type: String

Length Constraints: Maximum length of 255.

Errors

For information about the errors that are common to all actions, see Common Errors.

InsufficientPrivileges

The specified account does not have sufficient privileges for one or more AWS services.

HTTP Status Code: 403

S3SubscriptionRequired

The specified account does not have a subscription to Amazon S3.

HTTP Status Code: 400

TooManyBuckets

The specified account has reached its limit of Amazon S3 buckets.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateStorageLocation.

Sample Request

https://elasticbeanstalk.us-west-2.amazonaws.com/?Operation=CreateStorageLocation &AuthParams

Sample Response

<CreateStorageLocationResponse xmlns="https://elasticbeanstalk.amazonaws.com/docs/2010-12-01/"> <CreateStorageLocationResult> <S3Bucket>elasticbeanstalk-us-east-1-780612358023</S3Bucket> </CreateStorageLocationResult> <ResponseMetadata> <RequestId>ef51b94a-f1d6-11df-8a78-9f77047e0d0c</RequestId> </ResponseMetadata> </CreateStorageLocationResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: