CreateStorageLocation - AWS Elastic Beanstalk


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.


The name of the Amazon S3 bucket created.

Type: String

Length Constraints: Maximum length of 255.


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


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

HTTP Status Code: 403


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

HTTP Status Code: 400


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

HTTP Status Code: 400


Sample Request &AuthParams

Sample Response

<CreateStorageLocationResponse xmlns=""> <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: