1. Packages
  2. AWS
  3. API Docs
  4. rds
  5. getGlobalCluster
AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi

aws.rds.getGlobalCluster

Get Started
aws logo
AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi

    Data source for managing an AWS RDS (Relational Database) Global Cluster.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.rds.getGlobalCluster({
        identifier: test.globalClusterIdentifier,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.rds.get_global_cluster(identifier=test["globalClusterIdentifier"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/rds"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds.LookupGlobalCluster(ctx, &rds.LookupGlobalClusterArgs{
    			Identifier: test.GlobalClusterIdentifier,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Rds.GetGlobalCluster.Invoke(new()
        {
            Identifier = test.GlobalClusterIdentifier,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.rds.RdsFunctions;
    import com.pulumi.aws.rds.inputs.GetGlobalClusterArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = RdsFunctions.getGlobalCluster(GetGlobalClusterArgs.builder()
                .identifier(test.globalClusterIdentifier())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:rds:getGlobalCluster
          arguments:
            identifier: ${test.globalClusterIdentifier}
    

    Using getGlobalCluster

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGlobalCluster(args: GetGlobalClusterArgs, opts?: InvokeOptions): Promise<GetGlobalClusterResult>
    function getGlobalClusterOutput(args: GetGlobalClusterOutputArgs, opts?: InvokeOptions): Output<GetGlobalClusterResult>
    def get_global_cluster(identifier: Optional[str] = None,
                           region: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetGlobalClusterResult
    def get_global_cluster_output(identifier: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetGlobalClusterResult]
    func LookupGlobalCluster(ctx *Context, args *LookupGlobalClusterArgs, opts ...InvokeOption) (*LookupGlobalClusterResult, error)
    func LookupGlobalClusterOutput(ctx *Context, args *LookupGlobalClusterOutputArgs, opts ...InvokeOption) LookupGlobalClusterResultOutput

    > Note: This function is named LookupGlobalCluster in the Go SDK.

    public static class GetGlobalCluster 
    {
        public static Task<GetGlobalClusterResult> InvokeAsync(GetGlobalClusterArgs args, InvokeOptions? opts = null)
        public static Output<GetGlobalClusterResult> Invoke(GetGlobalClusterInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalClusterResult> getGlobalCluster(GetGlobalClusterArgs args, InvokeOptions options)
    public static Output<GetGlobalClusterResult> getGlobalCluster(GetGlobalClusterArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:rds/getGlobalCluster:getGlobalCluster
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Identifier string

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    identifier String

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    identifier string

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    identifier str

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    identifier String

    The global cluster identifier of the RDS global cluster.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getGlobalCluster Result

    The following output properties are available:

    Arn string
    RDS Global Cluster Amazon Resource Name (ARN)
    DatabaseName string
    Name of the automatically created database on cluster creation.
    DeletionProtection bool
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    Endpoint string
    The endpoint for the Global Cluster.
    Engine string
    Name of the database engine.
    EngineLifecycleSupport string
    The current lifecycle support status of the database engine for this Global Cluster.
    EngineVersion string
    Version of the database engine for this Global Cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Members List<GetGlobalClusterMember>
    Set of objects containing Global Cluster members.
    Region string
    ResourceId string
    AWS Region-unique, immutable identifier for the global database cluster.
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    Tags Dictionary<string, string>
    A map of tags to assigned to the Global Cluster.
    Arn string
    RDS Global Cluster Amazon Resource Name (ARN)
    DatabaseName string
    Name of the automatically created database on cluster creation.
    DeletionProtection bool
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    Endpoint string
    The endpoint for the Global Cluster.
    Engine string
    Name of the database engine.
    EngineLifecycleSupport string
    The current lifecycle support status of the database engine for this Global Cluster.
    EngineVersion string
    Version of the database engine for this Global Cluster.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Members []GetGlobalClusterMember
    Set of objects containing Global Cluster members.
    Region string
    ResourceId string
    AWS Region-unique, immutable identifier for the global database cluster.
    StorageEncrypted bool
    Whether the DB cluster is encrypted.
    Tags map[string]string
    A map of tags to assigned to the Global Cluster.
    arn String
    RDS Global Cluster Amazon Resource Name (ARN)
    databaseName String
    Name of the automatically created database on cluster creation.
    deletionProtection Boolean
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    endpoint String
    The endpoint for the Global Cluster.
    engine String
    Name of the database engine.
    engineLifecycleSupport String
    The current lifecycle support status of the database engine for this Global Cluster.
    engineVersion String
    Version of the database engine for this Global Cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    members List<GetGlobalClusterMember>
    Set of objects containing Global Cluster members.
    region String
    resourceId String
    AWS Region-unique, immutable identifier for the global database cluster.
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tags Map<String,String>
    A map of tags to assigned to the Global Cluster.
    arn string
    RDS Global Cluster Amazon Resource Name (ARN)
    databaseName string
    Name of the automatically created database on cluster creation.
    deletionProtection boolean
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    endpoint string
    The endpoint for the Global Cluster.
    engine string
    Name of the database engine.
    engineLifecycleSupport string
    The current lifecycle support status of the database engine for this Global Cluster.
    engineVersion string
    Version of the database engine for this Global Cluster.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    members GetGlobalClusterMember[]
    Set of objects containing Global Cluster members.
    region string
    resourceId string
    AWS Region-unique, immutable identifier for the global database cluster.
    storageEncrypted boolean
    Whether the DB cluster is encrypted.
    tags {[key: string]: string}
    A map of tags to assigned to the Global Cluster.
    arn str
    RDS Global Cluster Amazon Resource Name (ARN)
    database_name str
    Name of the automatically created database on cluster creation.
    deletion_protection bool
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    endpoint str
    The endpoint for the Global Cluster.
    engine str
    Name of the database engine.
    engine_lifecycle_support str
    The current lifecycle support status of the database engine for this Global Cluster.
    engine_version str
    Version of the database engine for this Global Cluster.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    members Sequence[GetGlobalClusterMember]
    Set of objects containing Global Cluster members.
    region str
    resource_id str
    AWS Region-unique, immutable identifier for the global database cluster.
    storage_encrypted bool
    Whether the DB cluster is encrypted.
    tags Mapping[str, str]
    A map of tags to assigned to the Global Cluster.
    arn String
    RDS Global Cluster Amazon Resource Name (ARN)
    databaseName String
    Name of the automatically created database on cluster creation.
    deletionProtection Boolean
    If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to true.
    endpoint String
    The endpoint for the Global Cluster.
    engine String
    Name of the database engine.
    engineLifecycleSupport String
    The current lifecycle support status of the database engine for this Global Cluster.
    engineVersion String
    Version of the database engine for this Global Cluster.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    members List<Property Map>
    Set of objects containing Global Cluster members.
    region String
    resourceId String
    AWS Region-unique, immutable identifier for the global database cluster.
    storageEncrypted Boolean
    Whether the DB cluster is encrypted.
    tags Map<String>
    A map of tags to assigned to the Global Cluster.

    Supporting Types

    GetGlobalClusterMember

    DbClusterArn string
    Amazon Resource Name (ARN) of member DB Cluster
    IsWriter bool
    Whether the member is the primary DB Cluster
    DbClusterArn string
    Amazon Resource Name (ARN) of member DB Cluster
    IsWriter bool
    Whether the member is the primary DB Cluster
    dbClusterArn String
    Amazon Resource Name (ARN) of member DB Cluster
    isWriter Boolean
    Whether the member is the primary DB Cluster
    dbClusterArn string
    Amazon Resource Name (ARN) of member DB Cluster
    isWriter boolean
    Whether the member is the primary DB Cluster
    db_cluster_arn str
    Amazon Resource Name (ARN) of member DB Cluster
    is_writer bool
    Whether the member is the primary DB Cluster
    dbClusterArn String
    Amazon Resource Name (ARN) of member DB Cluster
    isWriter Boolean
    Whether the member is the primary DB Cluster

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.10.0 published on Friday, Oct 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate