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.
Idawscc.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.
enginestringThe engine 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.

For more information, see AWS::ElastiCache::GlobalReplicationGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceglobal_replication_groupsINSERTMembers, region
delete_resourceglobal_replication_groupsDELETEIdentifier, region
update_resourceglobal_replication_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesglobal_replication_groups_list_onlySELECTregion
get_resourceglobal_replication_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual global_replication_group.

SELECT
region,
global_replication_group_id_suffix,
automatic_failover_enabled,
cache_node_type,
engine_version,
engine,
cache_parameter_group_name,
global_node_group_count,
global_replication_group_description,
global_replication_group_id,
members,
status,
regional_configurations
FROM awscc.elasticache.global_replication_groups
WHERE
region = '{{ region }}' AND
Identifier = '{{ global_replication_group_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.elasticache.global_replication_groups (
Members,
region
)
SELECT
'{{ members }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.elasticache.global_replication_groups
SET PatchDocument = string('{{ {
"GlobalReplicationGroupIdSuffix": global_replication_group_id_suffix,
"AutomaticFailoverEnabled": automatic_failover_enabled,
"CacheNodeType": cache_node_type,
"EngineVersion": engine_version,
"Engine": engine,
"CacheParameterGroupName": cache_parameter_group_name,
"GlobalNodeGroupCount": global_node_group_count,
"GlobalReplicationGroupDescription": global_replication_group_description,
"Members": members,
"RegionalConfigurations": regional_configurations
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ global_replication_group_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.elasticache.global_replication_groups
WHERE
Identifier = '{{ global_replication_group_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

elasticache:CreateGlobalReplicationGroup,
elasticache:DescribeGlobalReplicationGroups