Skip to main content

db_shard_groups

Creates, updates, deletes or gets a db_shard_group resource or lists db_shard_groups in a region

Overview

Namedb_shard_groups
TypeResource
DescriptionThe AWS::RDS::DBShardGroup resource creates an Amazon Aurora Limitless DB Shard Group.
Idaws.rds.db_shard_groups

Fields

NameDatatypeDescription
db_shard_group_resource_idstringThe Amazon Web Services Region-unique, immutable identifier for the DB shard group.
db_shard_group_identifierstringThe name of the DB shard group.
db_cluster_identifierstringThe name of the primary DB cluster for the DB shard group.
compute_redundancyintegerSpecifies whether to create standby instances for the DB shard group.
max_ac_unumberThe maximum capacity of the DB shard group in Aurora capacity units (ACUs).
min_ac_unumberThe minimum capacity of the DB shard group in Aurora capacity units (ACUs).
publicly_accessiblebooleanIndicates whether the DB shard group is publicly accessible.
endpointstringThe connection endpoint for the DB shard group.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::RDS::DBShardGroup.

Methods

NameAccessible byRequired Params
create_resourceINSERTDBClusterIdentifier, MaxACU, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all db_shard_groups in a region.

SELECT
region,
db_shard_group_resource_id,
db_shard_group_identifier,
db_cluster_identifier,
compute_redundancy,
max_ac_u,
min_ac_u,
publicly_accessible,
endpoint,
tags
FROM aws.rds.db_shard_groups
WHERE region = 'us-east-1';

Gets all properties from an individual db_shard_group.

SELECT
region,
db_shard_group_resource_id,
db_shard_group_identifier,
db_cluster_identifier,
compute_redundancy,
max_ac_u,
min_ac_u,
publicly_accessible,
endpoint,
tags
FROM aws.rds.db_shard_groups
WHERE region = 'us-east-1' AND data__Identifier = '<DBShardGroupIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new db_shard_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.rds.db_shard_groups (
DBClusterIdentifier,
MaxACU,
region
)
SELECT
'{{ DBClusterIdentifier }}',
'{{ MaxACU }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.rds.db_shard_groups
WHERE data__Identifier = '<DBShardGroupIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the db_shard_groups resource, the following permissions are required:

Create

rds:AddTagsToResource,
rds:CreateDBShardGroup,
rds:DescribeDBClusters,
rds:DescribeDBShardGroups,
rds:ListTagsForResource

Read

rds:DescribeDBShardGroups,
rds:ListTagsForResource

Update

rds:AddTagsToResource,
rds:DescribeDBShardGroups,
rds:DescribeDBClusters,
rds:RemoveTagsFromResource,
rds:ModifyDBShardGroup,
rds:ListTagsForResource

Delete

rds:DeleteDBShardGroup,
rds:DescribeDBClusters,
rds:DescribeDbShardGroups

List

rds:DescribeDBShardGroups,
rds:ListTagsForResource