Amazon AWS S3 Storage Environment

The following article deals with configuring the AWS S3 bucket as a storage environment in your Vault account. To begin with, you will need an S3 bucket created in your AWS account.

How to create and configure AWS S3 bucket

  1. Log in to the AWS Console at

  2. From the storage service, click on S3.

  1. Click on Create Bucket. The Create bucket page opens.

  1. Enter the Bucket name.The Bucket name must:

    • Should be unique across the globe

    • Be between 3 and 63 characters long.

    • Not contain uppercase characters.

    • Start with a lowercase letter or number.

  2. In Region, choose the AWS Region where you want the bucket to reside (keep a note of the AWS region chosen by you. For ex- us-east-2). This will come in handy when you configure the bucket in Vault.

  3. Choose Create bucket.

  1. Once you're done creating the bucket, go to the Properties tab.

  2. Click on Default Encryption and choose the second option i.e., AES-256.

  3. Click on the Save button.

  1. Next, search for IAM from the AWS Management console homepage.

  2. Click on Policies > Create policy.

  1. Switch to the JSON tab and paste the below text by replacing 'bucket_name' with the name of the bucket that was created in previous steps.

    "Version": "2012-10-17", 
    "Statement": [
            "Action": [ 
            "Effect": "Allow", 
            "Resource": [ 
            "Effect": "Allow", 
            "Action": "s3:*", 
            "Resource": [ 
            "Effect": "Deny", 
            "NotAction": "s3:*", 
            "NotResource": [ 
  1. Click on Review policy and provide a name to the policy.

  2. Click on Create policy.

  3. After the policy is created, go to the Users tab, and click on Add user.

  1. Enter an IAM username specific for Vault integration.

  2. Select the AWS access type as Programmatic access.

  3. Click on Next: Permissions to go to the next page.

  1. Click on Attach existing policies directly.

  1. Search for the policy created in Steps 10-14.

  2. Select the policy and click on Next: Tags.

  3. Skip to the last screen and click on Create user.

  4. Click on Download .CSV file for downloading the credentials (access key and secret key) to be configured in Vault.

Configuring in Vault

  1. Log in to your Vault account.

  2. Go to Settings > Backup Environment.

  3. Select AWS S3 as the Storage Type.

  4. Provide a label of your choice (Need not be the same as your S3 Bucket name).

  5. Enter the name of your s3 bucket in the Bucket Name field.

  6. Provide the Access key and Secret key by copying from the CSV file downloaded earlier (mentioned in Step 23).

  7. Select the region to be the same as the region provided for the bucket while creating in Step 5.

  8. Enable the checkbox: AES-256 Encryption

  9. Click on Save Settings.

Last updated