

# Create an Amazon S3 bucket for Amazon MWAA
<a name="mwaa-s3-bucket"></a>

This guide describes the steps to create an Amazon S3 bucket to store your Apache Airflow Directed Acyclic Graphs (DAGs), custom plugins in a `plugins.zip` file, and Python dependencies in a `requirements.txt` file.

**Contents**
+ [Before you begin](#mwaa-s3-bucket-before)
+ [Create the bucket](#mwaa-s3-bucket-create)
+ [What's next?](#mwaa-s3-bucket-next-up)

## Before you begin
<a name="mwaa-s3-bucket-before"></a>
+ The Amazon S3 bucket name can't be changed after you create the bucket. To learn more, refer to [Rules for bucket naming](https://docs.amazonaws.cn/AmazonS3/latest/userguide/BucketRestrictions.html#bucketnamingrules) in the *Amazon Simple Storage Service User Guide*.
+ An Amazon S3 bucket used for an Amazon MWAA environment must be configured to **Block all public access**, with **Bucket Versioning** enabled.
+ An Amazon S3 bucket used for an Amazon MWAA environment must be located in the same Amazon Web Services Region as an Amazon MWAA environment. To access a list of Amazon Web Services Regions for Amazon MWAA, refer to [Amazon MWAA endpoints and quotas](https://docs.amazonaws.cn/general/latest/gr/mwaa.html) in the *Amazon Web Services General Reference*.

## Create the bucket
<a name="mwaa-s3-bucket-create"></a>

This section describes the steps to create the Amazon S3 bucket for your environment.

**To create a bucket**

1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at [https://console.amazonaws.cn/s3/](https://console.amazonaws.cn/s3/).

1. Choose **Create bucket**.

1. In **Bucket name**, enter a DNS-compliant name for your bucket.

   The bucket name must:
   + Be unique across all of Amazon S3.
   + Be between 3 and 63 characters long.
   + Not contain uppercase characters.
   + Start with a lowercase letter or number.
**Important**  
Avoid including sensitive information, such as account numbers, in the bucket name. The bucket name is available in the URLs that point to the objects in the bucket.

1. Choose an Amazon Web Services Region in **Region**. This must be the same Amazon Web Services Region as your Amazon MWAA environment.

   1. We recommend choosing a region close to you to minimize latency and costs and address regulatory requirements.

1. Choose **Block all public access**.

1. Choose **Enable** in **Bucket Versioning**.

1. **Optional** - *Tags*. Add key-value tag pairs to identify your Amazon S3 bucket in **Tags**. For example, `Bucket` : `Staging`.

1. **Optional** - *Server-side encryption*. You can optionally **Enable** one of the following encryption options on your Amazon S3 bucket.

   1. Choose **Amazon S3 key (SSE-S3)** in **Server-side encryption** to enable server-side encryption for the bucket.

   1. Choose **Amazon Key Management Service key (SSE-KMS)** to use an Amazon KMS key for encryption on your Amazon S3 bucket:

      1. **Amazon managed key (aws/s3)** - If you choose this option, you can either use an [Amazon-owned key](https://docs.amazonaws.cn/kms/latest/developerguide/concepts.html#aws-owned-cmk) managed by Amazon MWAA, or specify a [Customer-managed key](https://docs.amazonaws.cn/kms/latest/developerguide/concepts.html#customer-cmk) for encryption of your Amazon MWAA environment.

      1. **Choose from your Amazon KMS keys** or **Enter Amazon KMS key ARN** - If you choose to specify a [Customer-managed key](https://docs.amazonaws.cn/kms/latest/developerguide/concepts.html#customer-cmk) in this step, you must specify an Amazon KMS key ID or ARN. [Amazon KMS aliases and multi-region keys are not supported by Amazon MWAA](custom-keys-certs.md). The Amazon KMS key you specify must also be used for encryption on your Amazon MWAA environment.

1. **Optional** - *Advanced settings*. If you want to enable Amazon S3 Object Lock:

   1. Choose **Advanced settings**, **Enable**.
**Important**  
Enabling Object Lock will permanently allow objects in this bucket to be locked. To learn more, refer to [Locking Objects Using Amazon S3 Object Lock](https://docs.amazonaws.cn//AmazonS3/latest/dev/object-lock.html) in the *Amazon Simple Storage Service User Guide*.

   1. Choose the acknowledgement.

1. Choose **Create bucket**.

## What's next?
<a name="mwaa-s3-bucket-next-up"></a>
+ Learn how to create the required Amazon VPC network for an environment in [Create the VPC network](vpc-create.md).
+ Learn how to how to manage access permissions in [How do I set ACL bucket permissions?](https://docs.amazonaws.cn//AmazonS3/latest/user-guide/set-bucket-permissions.html)
+ Learn how to delete a storage bucket in [How do I delete an S3 Bucket?](https://docs.amazonaws.cn//AmazonS3/latest/user-guide/delete-bucket.html).