Encrypt Astra Managed Clusters databases with AWS Key Management Service customer managed keys

You must configure customer keys before you deploy the databases that will use those keys. You cannot use a new customer key for an existing database.

You can encrypt your Astra Managed Clusters databases with AWS Key Management Service (KMS) customer managed keys (CMKs).

To do this, you must start the registration process in Astra, create a key in AWS KMS, and then register the key in your Astra organization. This process requires access to both Astra and your cloud provider.

To configure customer key encryption for other cloud providers or Astra DB Serverless databases, see Prepare to use customer-managed encryption keys with Astra Managed Clusters.

Prerequisites

Create and register an AWS KMS CMK in the Astra Portal

  1. In the Astra Portal header, click Settings.

  2. In the Settings navigation menu, make sure the enterprise/organization filter is set to the organization that you want to manage.

    If the organization belongs to an enterprise, you must filter on the enterprise, and then click the organization name in the Organizations list.

  3. In the Settings navigation menu, click Security.

  4. In the Key Encryption section, click Add Keys.

  5. For Database Type, select Classic.

  6. For Provider, select Amazon Web Services.

  7. For Region, select the region where you plan to create your customer key and deploy your database.

    You can select from any supported region that is unlocked for your Astra organization. For assistance with unavailable regions, contact IBM Support.

  8. After your select a region, make a note of the Cloud Provider ID. This is a unique identifier for a DataStax-owned AWS account. You will use this ID to define allowed principals in your key’s IAM policy.

  9. Open a new browser tab, navigate to AWS KMS, and then create a symmetric encryption key in the same region that you selected in the Astra Portal.

  10. Edit the key policy to include the following policy statement:

            {
                "Sid": "Allow an external account to use this KMS key",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::PROVIDER_ID:role/creator"
                },
                "Action": [
                    "kms:EnableKey",
                    "kms:Encrypt",
                    "kms:Decrypt",
                    "kms:GenerateDataKey",
                    "kms:GenerateDataKeyWithoutPlaintext",
                    "kms:ReEncryptTo",
                    "kms:ReEncryptFrom",
                    "kms:DescribeKey"
                ],
                "Resource": "*"
            },

    In the allowed principals, replace PROVIDER_ID with the Cloud Provider ID from the Astra Portal. For more information, see AWS account principals.

    The key policy must include the following permissions and actions, some of which are included in the default key policy:

    • Enable IAM User Permissions

    • Allow an external account to use this KMS key

    • Allow attachment of persistent resources

    • kms:CreateGrant

    • kms:ListGrants

    • kms:RevokeGrant

  11. Copy the key’s ARN.

  12. In the Astra Portal, paste the key’s ARN in the Key ID field, and then click Add Key.

  13. Deploy databases in the same provider-specific region as the registered key.

    Astra uses the registered key to encrypt all Astra Managed Clusters databases that you deploy to the same provider-specific region.

    Creating new databases and adding regions to multi-region databases are both considered database deployments. For multi-region databases, you must register a key in each desired region before you deploy the database to those regions. For more information, see Prepare to use customer-managed encryption keys with Astra Managed Clusters.

  14. Optional: Enable customer key encryption for other regions, providers, or database types.

    To enable customer key encryption for Astra Managed Clusters databases in other AWS regions, repeat this entire process for each applicable region.

    To configure customer key encryption for other cloud providers or Astra DB Serverless databases, see Prepare to use customer-managed encryption keys with Astra Managed Clusters.

Create and register an AWS KMS CMK with the DevOps API

  1. Use the DevOps API to get the DataStax-owned AWS account ID for your key’s IAM policy:

    curl -sS -L -X GET "https://api.astra.datastax.com/v2/kms/classic/provider/aws/region/REGION/accounts" \
    --header "Authorization: Bearer APPLICATION_TOKEN" \
    --header "Content-Type: application/json"

    Replace the following:

  2. Copy the provider_id from the response, which is a unique identifier for a DataStax-owned AWS account. You will use this ID to define allowed principals in your key’s IAM policy.

    [
      {
        "organization_id": "ORGANIZATION_ID",
        "provider_id": "PROVIDER_ID",
        "provider": "aws"
      }
    ]
  3. In AWS KMS, create a symmetric encryption key in the same region that you used in the previous DevOps API request.

  4. Edit the key policy to include the following policy statement:

            {
                "Sid": "Allow an external account to use this KMS key",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "arn:aws:iam::PROVIDER_ID:role/creator"
                },
                "Action": [
                    "kms:EnableKey",
                    "kms:Encrypt",
                    "kms:Decrypt",
                    "kms:GenerateDataKey",
                    "kms:GenerateDataKeyWithoutPlaintext",
                    "kms:ReEncryptTo",
                    "kms:ReEncryptFrom",
                    "kms:DescribeKey"
                ],
                "Resource": "*"
            },

    In the allowed principals, replace PROVIDER_ID with the provider_id that was returned by the DevOps API. For more information, see AWS account principals.

    The key policy must include the following permissions and actions, some of which are included in the default key policy:

    • Enable IAM User Permissions

    • Allow an external account to use this KMS key

    • Allow attachment of persistent resources

    • kms:CreateGrant

    • kms:ListGrants

    • kms:RevokeGrant

  5. Copy the key’s ARN.

  6. Use the DevOps API to register your customer key in your Astra organization:

    curl -sS -L -X POST "https://api.astra.datastax.com/v2/kms/classic" \
    --header "Authorization: Bearer APPLICATION_TOKEN" \
    --header "Content-Type: application/json" \
    --data '{
      "orgId": "ORGANIZATION_ID",
      "aws": {
        "keyID": "ARN",
        "region": "REGION"
      }
    }'

    Replace the following:

    • APPLICATION_TOKEN: Your Astra application token.

    • ORGANIZATION_ID: Your Astra organization ID.

    • ARN: Your key’s ARN from AWS KMS.

    • REGION: The region where you created your key, such as us-east-2.

  7. Deploy databases in the same provider-specific region as the registered key.

    Astra uses the registered key to encrypt all Astra Managed Clusters databases that you deploy to the same provider-specific region.

    Creating new databases and adding regions to multi-region databases are both considered database deployments. For multi-region databases, you must register a key in each desired region before you deploy the database to those regions. For more information, see Prepare to use customer-managed encryption keys with Astra Managed Clusters.

  8. Optional: Enable customer key encryption for other regions, providers, or database types.

    To enable customer key encryption for Astra Managed Clusters databases in other AWS regions, repeat this entire process for each applicable region.

    To configure customer key encryption for other cloud providers or Astra DB Serverless databases, see Prepare to use customer-managed encryption keys with Astra Managed Clusters.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM