Data Source: awsRedshiftCluster
Provides details about a specific redshift cluster.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsRedshiftClusterExample =
new aws.dataAwsRedshiftCluster.DataAwsRedshiftCluster(this, "example", {
clusterIdentifier: "example-cluster",
});
new aws.kinesisFirehoseDeliveryStream.KinesisFirehoseDeliveryStream(
this,
"example_stream",
{
destination: "redshift",
name: "terraform-kinesis-firehose-example-stream",
redshiftConfiguration: {
clusterJdbcurl: `jdbc:redshift://\${${dataAwsRedshiftClusterExample.endpoint}}/\${${dataAwsRedshiftClusterExample.databaseName}}`,
copyOptions: "delimiter '|'",
dataTableColumns: "example-col",
dataTableName: "example-table",
password: "Exampl3Pass",
roleArn: "${aws_iam_role.firehose_role.arn}",
username: "exampleuser",
},
s3Configuration: {
bucketArn: "${aws_s3_bucket.bucket.arn}",
bufferInterval: 400,
bufferSize: 10,
compressionFormat: "GZIP",
roleArn: "${aws_iam_role.firehose_role.arn}",
},
}
);
Argument Reference
The following arguments are supported:
clusterIdentifier- (Required) Cluster identifier
Attribute Reference
In addition to all arguments above, the following attributes are exported:
arn- ARN of cluster.allowVersionUpgrade- Whether major version upgrades can be applied during maintenance periodautomatedSnapshotRetentionPeriod- The backup retention periodaquaConfigurationStatus- The value represents how the cluster is configured to use AQUA.availabilityZone- Availability zone of the clusteravailabilityZoneRelocationEnabled- Indicates whether the cluster is able to be relocated to another availability zone.bucketName- Name of the S3 bucket where the log files are to be storedclusterIdentifier- Cluster identifierclusterNodes- Nodes in the cluster. Cluster node blocks are documented belowclusterParameterGroupName- The name of the parameter group to be associated with this clusterclusterPublicKey- Public key for the clusterclusterRevisionNumber- The cluster revision numberclusterSecurityGroups- The security groups associated with the clusterclusterSubnetGroupName- The name of a cluster subnet group to be associated with this clusterclusterType- Cluster typedatabaseName- Name of the default database in the clusterdefaultIamRoleArn- ∂The ARN for the IAM role that was set as default for the cluster when the cluster was created.elasticIp- Elastic IP of the clusterenableLogging- Whether cluster logging is enabledencrypted- Whether the cluster data is encryptedendpoint- Cluster endpointenhancedVpcRouting- Whether enhanced VPC routing is enablediamRoles- IAM roles associated to the clusterkmsKeyId- KMS encryption key associated to the clustermasterUsername- Username for the master DB usernodeType- Cluster node typenumberOfNodes- Number of nodes in the clustermaintenanceTrackName- The name of the maintenance track for the restored cluster.manualSnapshotRetentionPeriod- (Optional) The default number of days to retain a manual snapshot.port- Port the cluster responds onpreferredMaintenanceWindow- The maintenance windowpubliclyAccessible- Whether the cluster is publicly accessibles3KeyPrefix- Folder inside the S3 bucket where the log files are storedlogDestinationType- The log destination type.logExports- Collection of exported log types. Log types include the connection log, user log and user activity log.tags- Tags associated to the clustervpcId- VPC Id associated with the clustervpcSecurityGroupIds- The VPC security group Ids associated with the cluster
Cluster nodes (for clusterNodes) support the following attributes:
nodeRole- Whether the node is a leader node or a compute nodeprivateIpAddress- Private IP address of a node within a clusterpublicIpAddress- Public IP address of a node within a cluster