Skip to main content

global_clusters

Creates, updates, deletes or gets a global_cluster resource or lists global_clusters in a region

Overview

Nameglobal_clusters
TypeResource
DescriptionResource Type definition for AWS::RDS::GlobalCluster
Idaws.rds.global_clusters

Fields

NameDatatypeDescription
enginestringThe name of the database engine to be used for this DB cluster. Valid Values: aurora (for MySQL 5.6-compatible Aurora), aurora-mysql (for MySQL 5.7-compatible Aurora).
If you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster.
tagsarrayAn array of key-value pairs to apply to this resource.
engine_lifecycle_supportstringThe life cycle type of the global cluster. You can use this setting to enroll your global cluster into Amazon RDS Extended Support.
engine_versionstringThe version number of the database engine to use. If you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster.
deletion_protectionbooleanThe deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.
global_cluster_identifierstringThe cluster identifier of the new global database cluster. This parameter is stored as a lowercase string.
source_db_cluster_identifierstringThe Amazon Resource Name (ARN) to use as the primary cluster of the global database. This parameter is optional. This parameter is stored as a lowercase string.
storage_encryptedbooleanThe storage encryption setting for the new global database cluster.
If you specify the SourceDBClusterIdentifier property, don't specify this property. The value is inherited from the cluster.
global_endpointobject
regionstringAWS region.

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

Methods

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

SELECT examples

Gets all global_clusters in a region.

SELECT
region,
engine,
tags,
engine_lifecycle_support,
engine_version,
deletion_protection,
global_cluster_identifier,
source_db_cluster_identifier,
storage_encrypted,
global_endpoint
FROM aws.rds.global_clusters
WHERE region = 'us-east-1';

Gets all properties from an individual global_cluster.

SELECT
region,
engine,
tags,
engine_lifecycle_support,
engine_version,
deletion_protection,
global_cluster_identifier,
source_db_cluster_identifier,
storage_encrypted,
global_endpoint
FROM aws.rds.global_clusters
WHERE region = 'us-east-1' AND data__Identifier = '<GlobalClusterIdentifier>';

INSERT example

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

/*+ create */
INSERT INTO aws.rds.global_clusters (
Engine,
Tags,
EngineLifecycleSupport,
EngineVersion,
DeletionProtection,
GlobalClusterIdentifier,
SourceDBClusterIdentifier,
StorageEncrypted,
GlobalEndpoint,
region
)
SELECT
'{{ Engine }}',
'{{ Tags }}',
'{{ EngineLifecycleSupport }}',
'{{ EngineVersion }}',
'{{ DeletionProtection }}',
'{{ GlobalClusterIdentifier }}',
'{{ SourceDBClusterIdentifier }}',
'{{ StorageEncrypted }}',
'{{ GlobalEndpoint }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

rds:CreateGlobalCluster,
rds:DescribeDBClusters,
rds:DescribeGlobalClusters

Read

rds:DescribeGlobalClusters

Update

rds:ModifyGlobalCluster,
rds:DescribeGlobalClusters,
rds:AddTagsToResource,
rds:RemoveTagsFromResource

Delete

rds:DescribeGlobalClusters,
rds:DeleteGlobalCluster,
rds:RemoveFromGlobalCluster,
rds:DescribeDBClusters

List

rds:DescribeGlobalClusters