Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

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:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.