Other Articles

RDS DB Cluster – Block Public Access

Secure Configuration Checks > AWS

This check ensures that Amazon RDS clusters are not publicly accessible. For Aurora, every instance in the cluster must also be private.

Check Details

  • Resource: RDS DB Cluster
  • Check: Block public access to RDS cluster (BlockPublicAccess)
  • Risk: The database endpoint can be reached from the internet

Remediation via AWS Console

  1. Open the Amazon RDS console.

    Amazon RDS Console
  2. Go to Databases and select the affected DB instance. For Aurora, select each instance in the cluster.

    RDS databases list
  3. Click Modify.

  4. Under Connectivity, expand Additional configuration and set Publicly accessible to No.

    RDS public access setting
  5. Click Continue, select Apply immediately if appropriate, and click Modify DB instance.

  6. Repeat for every affected DB instance.

Note: For existing Multi-AZ DB clusters, the Public access setting cannot be modified through the cluster modification workflow. Review the deployment and network configuration separately.

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner.

    AWS CloudShell
  2. List the public instances that belong to a cluster (Aurora):

    aws rds describe-db-instances \
    --query 'DBInstances[?PubliclyAccessible && DBClusterIdentifier].[DBInstanceIdentifier,DBClusterIdentifier,Engine]' \
    --output table
    

    List the public Multi-AZ DB clusters:

    aws rds describe-db-clusters \
    --query 'DBClusters[?PubliclyAccessible].[DBClusterIdentifier,Engine]' \
    --output table
    

    The commands cover one region. Add --region <region> to check another.

  3. Make an Aurora instance private. Repeat for every instance from the first list:

    aws rds modify-db-instance \
    --db-instance-identifier <instance-id> \
    --no-publicly-accessible \
    --apply-immediately
    
  4. Make a Multi-AZ DB cluster private:

    aws rds modify-db-cluster \
    --db-cluster-identifier <cluster-id> \
    --no-publicly-accessible \
    --apply-immediately
    
  5. Verify the setting. For Aurora, check every instance:

    aws rds describe-db-instances \
    --query 'DBInstances[?DBClusterIdentifier==`<cluster-id>`].[DBInstanceIdentifier,PubliclyAccessible]' \
    --output table
    

Replace <instance-id> with the instance name, for example my-aurora-instance-1. Replace <cluster-id> with the cluster name, for example my-aurora-cluster. For a Multi-AZ DB cluster, verify with aws rds describe-db-clusters and look at PubliclyAccessible.

Updated on 05 November, 2026