AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.redshift.getCluster
Explore with Pulumi AI
Provides details about a specific redshift cluster.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.RedshiftFunctions;
import com.pulumi.aws.redshift.inputs.GetClusterArgs;
import com.pulumi.aws.kinesis.FirehoseDeliveryStream;
import com.pulumi.aws.kinesis.FirehoseDeliveryStreamArgs;
import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamRedshiftConfigurationArgs;
import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamRedshiftConfigurationS3ConfigurationArgs;
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 = RedshiftFunctions.getCluster(GetClusterArgs.builder()
            .clusterIdentifier("example-cluster")
            .build());
        var exampleStream = new FirehoseDeliveryStream("exampleStream", FirehoseDeliveryStreamArgs.builder()
            .name("kinesis-firehose-example-stream")
            .destination("redshift")
            .redshiftConfiguration(FirehoseDeliveryStreamRedshiftConfigurationArgs.builder()
                .roleArn(firehoseRole.arn())
                .clusterJdbcurl(String.format("jdbc:redshift://%s/%s", example.applyValue(getClusterResult -> getClusterResult.endpoint()),example.applyValue(getClusterResult -> getClusterResult.databaseName())))
                .username("exampleuser")
                .password("Exampl3Pass")
                .dataTableName("example-table")
                .copyOptions("delimiter '|'")
                .dataTableColumns("example-col")
                .s3Configuration(FirehoseDeliveryStreamRedshiftConfigurationS3ConfigurationArgs.builder()
                    .roleArn(firehoseRole.arn())
                    .bucketArn(bucket.arn())
                    .bufferSize(10)
                    .bufferInterval(400)
                    .compressionFormat("GZIP")
                    .build())
                .build())
            .build());
    }
}
resources:
  exampleStream:
    type: aws:kinesis:FirehoseDeliveryStream
    name: example_stream
    properties:
      name: kinesis-firehose-example-stream
      destination: redshift
      redshiftConfiguration:
        roleArn: ${firehoseRole.arn}
        clusterJdbcurl: jdbc:redshift://${example.endpoint}/${example.databaseName}
        username: exampleuser
        password: Exampl3Pass
        dataTableName: example-table
        copyOptions: delimiter '|'
        dataTableColumns: example-col
        s3Configuration:
          roleArn: ${firehoseRole.arn}
          bucketArn: ${bucket.arn}
          bufferSize: 10
          bufferInterval: 400
          compressionFormat: GZIP
variables:
  example:
    fn::invoke:
      function: aws:redshift:getCluster
      arguments:
        clusterIdentifier: example-cluster
Using getCluster
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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>def get_cluster(cluster_identifier: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_identifier: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput> Note: This function is named LookupCluster in the Go SDK.
public static class GetCluster 
{
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
  function: aws:redshift/getCluster:getCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClusterIdentifier string
- Cluster identifier
- Dictionary<string, string>
- Tags associated to the cluster
- ClusterIdentifier string
- Cluster identifier
- map[string]string
- Tags associated to the cluster
- clusterIdentifier String
- Cluster identifier
- Map<String,String>
- Tags associated to the cluster
- clusterIdentifier string
- Cluster identifier
- {[key: string]: string}
- Tags associated to the cluster
- cluster_identifier str
- Cluster identifier
- Mapping[str, str]
- Tags associated to the cluster
- clusterIdentifier String
- Cluster identifier
- Map<String>
- Tags associated to the cluster
getCluster Result
The following output properties are available:
- AllowVersion boolUpgrade 
- Whether major version upgrades can be applied during maintenance period
- AquaConfiguration stringStatus 
- The value represents how the cluster is configured to use AQUA.
- Arn string
- ARN of cluster.
- AutomatedSnapshot intRetention Period 
- The backup retention period
- AvailabilityZone string
- Availability zone of the cluster
- AvailabilityZone boolRelocation Enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- BucketName string
- Name of the S3 bucket where the log files are to be stored
- ClusterIdentifier string
- Cluster identifier
- ClusterNamespace stringArn 
- The namespace Amazon Resource Name (ARN) of the cluster
- ClusterNodes List<GetCluster Cluster Node> 
- Nodes in the cluster. Cluster node blocks are documented below
- ClusterParameter stringGroup Name 
- The name of the parameter group to be associated with this cluster
- ClusterPublic stringKey 
- Public key for the cluster
- ClusterRevision stringNumber 
- The cluster revision number
- ClusterSubnet stringGroup Name 
- The name of a cluster subnet group to be associated with this cluster
- ClusterType string
- Cluster type
- ClusterVersion string
- DatabaseName string
- Name of the default database in the cluster
- DefaultIam stringRole Arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- ElasticIp string
- Elastic IP of the cluster
- EnableLogging bool
- Whether cluster logging is enabled
- Encrypted bool
- Whether the cluster data is encrypted
- Endpoint string
- Cluster endpoint
- EnhancedVpc boolRouting 
- Whether enhanced VPC routing is enabled
- IamRoles List<string>
- IAM roles associated to the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- KMS encryption key associated to the cluster
- LogDestination stringType 
- The log destination type.
- LogExports List<string>
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- MaintenanceTrack stringName 
- The name of the maintenance track for the restored cluster.
- ManualSnapshot intRetention Period 
- (Optional) The default number of days to retain a manual snapshot.
- MasterUsername string
- Username for the master DB user
- MultiAz bool
- If the cluster is a Multi-AZ deployment
- NodeType string
- Cluster node type
- NumberOf intNodes 
- Number of nodes in the cluster
- Port int
- Port the cluster responds on
- PreferredMaintenance stringWindow 
- The maintenance window
- PubliclyAccessible bool
- Whether the cluster is publicly accessible
- S3KeyPrefix string
- Folder inside the S3 bucket where the log files are stored
- Dictionary<string, string>
- Tags associated to the cluster
- VpcId string
- VPC Id associated with the cluster
- VpcSecurity List<string>Group Ids 
- The VPC security group Ids associated with the cluster
- AllowVersion boolUpgrade 
- Whether major version upgrades can be applied during maintenance period
- AquaConfiguration stringStatus 
- The value represents how the cluster is configured to use AQUA.
- Arn string
- ARN of cluster.
- AutomatedSnapshot intRetention Period 
- The backup retention period
- AvailabilityZone string
- Availability zone of the cluster
- AvailabilityZone boolRelocation Enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- BucketName string
- Name of the S3 bucket where the log files are to be stored
- ClusterIdentifier string
- Cluster identifier
- ClusterNamespace stringArn 
- The namespace Amazon Resource Name (ARN) of the cluster
- ClusterNodes []GetCluster Cluster Node 
- Nodes in the cluster. Cluster node blocks are documented below
- ClusterParameter stringGroup Name 
- The name of the parameter group to be associated with this cluster
- ClusterPublic stringKey 
- Public key for the cluster
- ClusterRevision stringNumber 
- The cluster revision number
- ClusterSubnet stringGroup Name 
- The name of a cluster subnet group to be associated with this cluster
- ClusterType string
- Cluster type
- ClusterVersion string
- DatabaseName string
- Name of the default database in the cluster
- DefaultIam stringRole Arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- ElasticIp string
- Elastic IP of the cluster
- EnableLogging bool
- Whether cluster logging is enabled
- Encrypted bool
- Whether the cluster data is encrypted
- Endpoint string
- Cluster endpoint
- EnhancedVpc boolRouting 
- Whether enhanced VPC routing is enabled
- IamRoles []string
- IAM roles associated to the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- KMS encryption key associated to the cluster
- LogDestination stringType 
- The log destination type.
- LogExports []string
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- MaintenanceTrack stringName 
- The name of the maintenance track for the restored cluster.
- ManualSnapshot intRetention Period 
- (Optional) The default number of days to retain a manual snapshot.
- MasterUsername string
- Username for the master DB user
- MultiAz bool
- If the cluster is a Multi-AZ deployment
- NodeType string
- Cluster node type
- NumberOf intNodes 
- Number of nodes in the cluster
- Port int
- Port the cluster responds on
- PreferredMaintenance stringWindow 
- The maintenance window
- PubliclyAccessible bool
- Whether the cluster is publicly accessible
- S3KeyPrefix string
- Folder inside the S3 bucket where the log files are stored
- map[string]string
- Tags associated to the cluster
- VpcId string
- VPC Id associated with the cluster
- VpcSecurity []stringGroup Ids 
- The VPC security group Ids associated with the cluster
- allowVersion BooleanUpgrade 
- Whether major version upgrades can be applied during maintenance period
- aquaConfiguration StringStatus 
- The value represents how the cluster is configured to use AQUA.
- arn String
- ARN of cluster.
- automatedSnapshot IntegerRetention Period 
- The backup retention period
- availabilityZone String
- Availability zone of the cluster
- availabilityZone BooleanRelocation Enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- bucketName String
- Name of the S3 bucket where the log files are to be stored
- clusterIdentifier String
- Cluster identifier
- clusterNamespace StringArn 
- The namespace Amazon Resource Name (ARN) of the cluster
- clusterNodes List<GetCluster Cluster Node> 
- Nodes in the cluster. Cluster node blocks are documented below
- clusterParameter StringGroup Name 
- The name of the parameter group to be associated with this cluster
- clusterPublic StringKey 
- Public key for the cluster
- clusterRevision StringNumber 
- The cluster revision number
- clusterSubnet StringGroup Name 
- The name of a cluster subnet group to be associated with this cluster
- clusterType String
- Cluster type
- clusterVersion String
- databaseName String
- Name of the default database in the cluster
- defaultIam StringRole Arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elasticIp String
- Elastic IP of the cluster
- enableLogging Boolean
- Whether cluster logging is enabled
- encrypted Boolean
- Whether the cluster data is encrypted
- endpoint String
- Cluster endpoint
- enhancedVpc BooleanRouting 
- Whether enhanced VPC routing is enabled
- iamRoles List<String>
- IAM roles associated to the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- KMS encryption key associated to the cluster
- logDestination StringType 
- The log destination type.
- logExports List<String>
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenanceTrack StringName 
- The name of the maintenance track for the restored cluster.
- manualSnapshot IntegerRetention Period 
- (Optional) The default number of days to retain a manual snapshot.
- masterUsername String
- Username for the master DB user
- multiAz Boolean
- If the cluster is a Multi-AZ deployment
- nodeType String
- Cluster node type
- numberOf IntegerNodes 
- Number of nodes in the cluster
- port Integer
- Port the cluster responds on
- preferredMaintenance StringWindow 
- The maintenance window
- publiclyAccessible Boolean
- Whether the cluster is publicly accessible
- s3KeyPrefix String
- Folder inside the S3 bucket where the log files are stored
- Map<String,String>
- Tags associated to the cluster
- vpcId String
- VPC Id associated with the cluster
- vpcSecurity List<String>Group Ids 
- The VPC security group Ids associated with the cluster
- allowVersion booleanUpgrade 
- Whether major version upgrades can be applied during maintenance period
- aquaConfiguration stringStatus 
- The value represents how the cluster is configured to use AQUA.
- arn string
- ARN of cluster.
- automatedSnapshot numberRetention Period 
- The backup retention period
- availabilityZone string
- Availability zone of the cluster
- availabilityZone booleanRelocation Enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- bucketName string
- Name of the S3 bucket where the log files are to be stored
- clusterIdentifier string
- Cluster identifier
- clusterNamespace stringArn 
- The namespace Amazon Resource Name (ARN) of the cluster
- clusterNodes GetCluster Cluster Node[] 
- Nodes in the cluster. Cluster node blocks are documented below
- clusterParameter stringGroup Name 
- The name of the parameter group to be associated with this cluster
- clusterPublic stringKey 
- Public key for the cluster
- clusterRevision stringNumber 
- The cluster revision number
- clusterSubnet stringGroup Name 
- The name of a cluster subnet group to be associated with this cluster
- clusterType string
- Cluster type
- clusterVersion string
- databaseName string
- Name of the default database in the cluster
- defaultIam stringRole Arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elasticIp string
- Elastic IP of the cluster
- enableLogging boolean
- Whether cluster logging is enabled
- encrypted boolean
- Whether the cluster data is encrypted
- endpoint string
- Cluster endpoint
- enhancedVpc booleanRouting 
- Whether enhanced VPC routing is enabled
- iamRoles string[]
- IAM roles associated to the cluster
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringId 
- KMS encryption key associated to the cluster
- logDestination stringType 
- The log destination type.
- logExports string[]
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenanceTrack stringName 
- The name of the maintenance track for the restored cluster.
- manualSnapshot numberRetention Period 
- (Optional) The default number of days to retain a manual snapshot.
- masterUsername string
- Username for the master DB user
- multiAz boolean
- If the cluster is a Multi-AZ deployment
- nodeType string
- Cluster node type
- numberOf numberNodes 
- Number of nodes in the cluster
- port number
- Port the cluster responds on
- preferredMaintenance stringWindow 
- The maintenance window
- publiclyAccessible boolean
- Whether the cluster is publicly accessible
- s3KeyPrefix string
- Folder inside the S3 bucket where the log files are stored
- {[key: string]: string}
- Tags associated to the cluster
- vpcId string
- VPC Id associated with the cluster
- vpcSecurity string[]Group Ids 
- The VPC security group Ids associated with the cluster
- allow_version_ boolupgrade 
- Whether major version upgrades can be applied during maintenance period
- aqua_configuration_ strstatus 
- The value represents how the cluster is configured to use AQUA.
- arn str
- ARN of cluster.
- automated_snapshot_ intretention_ period 
- The backup retention period
- availability_zone str
- Availability zone of the cluster
- availability_zone_ boolrelocation_ enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- bucket_name str
- Name of the S3 bucket where the log files are to be stored
- cluster_identifier str
- Cluster identifier
- cluster_namespace_ strarn 
- The namespace Amazon Resource Name (ARN) of the cluster
- cluster_nodes Sequence[GetCluster Cluster Node] 
- Nodes in the cluster. Cluster node blocks are documented below
- cluster_parameter_ strgroup_ name 
- The name of the parameter group to be associated with this cluster
- cluster_public_ strkey 
- Public key for the cluster
- cluster_revision_ strnumber 
- The cluster revision number
- cluster_subnet_ strgroup_ name 
- The name of a cluster subnet group to be associated with this cluster
- cluster_type str
- Cluster type
- cluster_version str
- database_name str
- Name of the default database in the cluster
- default_iam_ strrole_ arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elastic_ip str
- Elastic IP of the cluster
- enable_logging bool
- Whether cluster logging is enabled
- encrypted bool
- Whether the cluster data is encrypted
- endpoint str
- Cluster endpoint
- enhanced_vpc_ boolrouting 
- Whether enhanced VPC routing is enabled
- iam_roles Sequence[str]
- IAM roles associated to the cluster
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strid 
- KMS encryption key associated to the cluster
- log_destination_ strtype 
- The log destination type.
- log_exports Sequence[str]
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenance_track_ strname 
- The name of the maintenance track for the restored cluster.
- manual_snapshot_ intretention_ period 
- (Optional) The default number of days to retain a manual snapshot.
- master_username str
- Username for the master DB user
- multi_az bool
- If the cluster is a Multi-AZ deployment
- node_type str
- Cluster node type
- number_of_ intnodes 
- Number of nodes in the cluster
- port int
- Port the cluster responds on
- preferred_maintenance_ strwindow 
- The maintenance window
- publicly_accessible bool
- Whether the cluster is publicly accessible
- s3_key_ strprefix 
- Folder inside the S3 bucket where the log files are stored
- Mapping[str, str]
- Tags associated to the cluster
- vpc_id str
- VPC Id associated with the cluster
- vpc_security_ Sequence[str]group_ ids 
- The VPC security group Ids associated with the cluster
- allowVersion BooleanUpgrade 
- Whether major version upgrades can be applied during maintenance period
- aquaConfiguration StringStatus 
- The value represents how the cluster is configured to use AQUA.
- arn String
- ARN of cluster.
- automatedSnapshot NumberRetention Period 
- The backup retention period
- availabilityZone String
- Availability zone of the cluster
- availabilityZone BooleanRelocation Enabled 
- Indicates whether the cluster is able to be relocated to another availability zone.
- bucketName String
- Name of the S3 bucket where the log files are to be stored
- clusterIdentifier String
- Cluster identifier
- clusterNamespace StringArn 
- The namespace Amazon Resource Name (ARN) of the cluster
- clusterNodes List<Property Map>
- Nodes in the cluster. Cluster node blocks are documented below
- clusterParameter StringGroup Name 
- The name of the parameter group to be associated with this cluster
- clusterPublic StringKey 
- Public key for the cluster
- clusterRevision StringNumber 
- The cluster revision number
- clusterSubnet StringGroup Name 
- The name of a cluster subnet group to be associated with this cluster
- clusterType String
- Cluster type
- clusterVersion String
- databaseName String
- Name of the default database in the cluster
- defaultIam StringRole Arn 
- The ARN for the IAM role that was set as default for the cluster when the cluster was created.
- elasticIp String
- Elastic IP of the cluster
- enableLogging Boolean
- Whether cluster logging is enabled
- encrypted Boolean
- Whether the cluster data is encrypted
- endpoint String
- Cluster endpoint
- enhancedVpc BooleanRouting 
- Whether enhanced VPC routing is enabled
- iamRoles List<String>
- IAM roles associated to the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- KMS encryption key associated to the cluster
- logDestination StringType 
- The log destination type.
- logExports List<String>
- Collection of exported log types. Log types include the connection log, user log and user activity log.
- maintenanceTrack StringName 
- The name of the maintenance track for the restored cluster.
- manualSnapshot NumberRetention Period 
- (Optional) The default number of days to retain a manual snapshot.
- masterUsername String
- Username for the master DB user
- multiAz Boolean
- If the cluster is a Multi-AZ deployment
- nodeType String
- Cluster node type
- numberOf NumberNodes 
- Number of nodes in the cluster
- port Number
- Port the cluster responds on
- preferredMaintenance StringWindow 
- The maintenance window
- publiclyAccessible Boolean
- Whether the cluster is publicly accessible
- s3KeyPrefix String
- Folder inside the S3 bucket where the log files are stored
- Map<String>
- Tags associated to the cluster
- vpcId String
- VPC Id associated with the cluster
- vpcSecurity List<String>Group Ids 
- The VPC security group Ids associated with the cluster
Supporting Types
GetClusterClusterNode   
- NodeRole string
- Whether the node is a leader node or a compute node
- PrivateIp stringAddress 
- Private IP address of a node within a cluster
- PublicIp stringAddress 
- Public IP address of a node within a cluster
- NodeRole string
- Whether the node is a leader node or a compute node
- PrivateIp stringAddress 
- Private IP address of a node within a cluster
- PublicIp stringAddress 
- Public IP address of a node within a cluster
- nodeRole String
- Whether the node is a leader node or a compute node
- privateIp StringAddress 
- Private IP address of a node within a cluster
- publicIp StringAddress 
- Public IP address of a node within a cluster
- nodeRole string
- Whether the node is a leader node or a compute node
- privateIp stringAddress 
- Private IP address of a node within a cluster
- publicIp stringAddress 
- Public IP address of a node within a cluster
- node_role str
- Whether the node is a leader node or a compute node
- private_ip_ straddress 
- Private IP address of a node within a cluster
- public_ip_ straddress 
- Public IP address of a node within a cluster
- nodeRole String
- Whether the node is a leader node or a compute node
- privateIp StringAddress 
- Private IP address of a node within a cluster
- publicIp StringAddress 
- Public IP address of a node within a cluster
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.