Skip to main content

global_replication_groups

Creates, updates, deletes or gets a global_replication_group resource or lists global_replication_groups in a region

Overview

Nameglobal_replication_groups
TypeResource
DescriptionThe AWS::ElastiCache::GlobalReplicationGroup resource creates an Amazon ElastiCache Global Replication Group.
Idaws.elasticache.global_replication_groups

Fields

NameDatatypeDescription
global_replication_group_id_suffixstringThe suffix name of a Global Datastore. Amazon ElastiCache automatically applies a prefix to the Global Datastore ID when it is created. Each AWS Region has its own prefix.
automatic_failover_enabledbooleanAutomaticFailoverEnabled
cache_node_typestringThe cache node type of the Global Datastore
engine_versionstringThe engine version of the Global Datastore.
cache_parameter_group_namestringCache parameter group name to use for the new engine version. This parameter cannot be modified independently.
global_node_group_countintegerIndicates the number of node groups in the Global Datastore.
global_replication_group_descriptionstringThe optional description of the Global Datastore
global_replication_group_idstringThe name of the Global Datastore, it is generated by ElastiCache adding a prefix to GlobalReplicationGroupIdSuffix.
membersarrayThe replication groups that comprise the Global Datastore.
statusstringThe status of the Global Datastore
regional_configurationsarrayDescribes the replication group IDs, the AWS regions where they are stored and the shard configuration for each that comprise the Global Datastore
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTMembers, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all global_replication_groups in a region.

SELECT
region,
global_replication_group_id_suffix,
automatic_failover_enabled,
cache_node_type,
engine_version,
cache_parameter_group_name,
global_node_group_count,
global_replication_group_description,
global_replication_group_id,
members,
status,
regional_configurations
FROM aws.elasticache.global_replication_groups
WHERE region = 'us-east-1';

Gets all properties from an individual global_replication_group.

SELECT
region,
global_replication_group_id_suffix,
automatic_failover_enabled,
cache_node_type,
engine_version,
cache_parameter_group_name,
global_node_group_count,
global_replication_group_description,
global_replication_group_id,
members,
status,
regional_configurations
FROM aws.elasticache.global_replication_groups
WHERE region = 'us-east-1' AND data__Identifier = '<GlobalReplicationGroupId>';

INSERT example

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

/*+ create */
INSERT INTO aws.elasticache.global_replication_groups (
Members,
region
)
SELECT
'{{ Members }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.elasticache.global_replication_groups
WHERE data__Identifier = '<GlobalReplicationGroupId>'
AND region = 'us-east-1';

Permissions

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

Create

elasticache:CreateGlobalReplicationGroup,
elasticache:DescribeGlobalReplicationGroups

Read

elasticache:DescribeGlobalReplicationGroups

Update

elasticache:ModifyGlobalReplicationGroup,
elasticache:FailoverGlobalReplicationGroup,
elasticache:DescribeGlobalReplicationGroups,
elasticache:IncreaseNodeGroupsInGlobalReplicationGroup,
elasticache:DecreaseNodeGroupsInGlobalReplicationGroup,
elasticache:DisassociateGlobalReplicationGroup,
elasticache:RebalanceSlotsInGlobalReplicationGroup

Delete

elasticache:DeleteGlobalReplicationGroup,
elasticache:DisassociateGlobalReplicationGroup,
elasticache:DescribeGlobalReplicationGroups

List

elasticache:DescribeGlobalReplicationGroups