Skip to content

Redshift

CloudMock emulates Amazon Redshift, supporting cluster lifecycle, snapshots, subnet groups, parameter groups, tagging, and basic SQL statement execution.

OperationStatusNotes
CreateClusterSupportedCreates a Redshift cluster
DescribeClustersSupportedLists clusters
DeleteClusterSupportedDeletes a cluster
ModifyClusterSupportedModifies cluster configuration
RebootClusterSupportedReboots a cluster
CreateClusterSnapshotSupportedCreates a snapshot
DescribeClusterSnapshotsSupportedLists snapshots
DeleteClusterSnapshotSupportedDeletes a snapshot
RestoreFromClusterSnapshotSupportedRestores a cluster from snapshot
CreateClusterSubnetGroupSupportedCreates a subnet group
DescribeClusterSubnetGroupsSupportedLists subnet groups
DeleteClusterSubnetGroupSupportedDeletes a subnet group
CreateClusterParameterGroupSupportedCreates a parameter group
DescribeClusterParameterGroupsSupportedLists parameter groups
DeleteClusterParameterGroupSupportedDeletes a parameter group
CreateTagsSupportedAdds tags to a resource
DeleteTagsSupportedRemoves tags from a resource
DescribeTagsSupportedLists tags
ExecuteStatementSupportedExecutes a SQL statement (stub)
DescribeStatementSupportedReturns statement execution status
GetStatementResultSupportedReturns stub query results
import { RedshiftClient, CreateClusterCommand } from '@aws-sdk/client-redshift';
const client = new RedshiftClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateClusterCommand({
ClusterIdentifier: 'my-cluster',
NodeType: 'dc2.large',
MasterUsername: 'admin',
MasterUserPassword: 'Password123',
NumberOfNodes: 2,
}));
import boto3
client = boto3.client('redshift',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_cluster(
ClusterIdentifier='my-cluster',
NodeType='dc2.large',
MasterUsername='admin',
MasterUserPassword='Password123',
NumberOfNodes=2)
cloudmock.yml
services:
redshift:
enabled: true
  • No actual data warehouse is provisioned
  • SQL statements are not executed; results are stubs
  • Snapshots are metadata-only and restore creates a new empty cluster