On this page
Data Source: aws_redshift_cluster
Provides details about a specific redshift cluster.
Example Usage
data "aws_redshift_cluster" "test_cluster" {
cluster_identifier = "test-cluster"
}
resource "aws_kinesis_firehose_delivery_stream" "test_stream" {
name = "terraform-kinesis-firehose-test-stream"
destination = "redshift"
s3_configuration {
role_arn = "${aws_iam_role.firehose_role.arn}"
bucket_arn = "${aws_s3_bucket.bucket.arn}"
buffer_size = 10
buffer_interval = 400
compression_format = "GZIP"
}
redshift_configuration {
role_arn = "${aws_iam_role.firehose_role.arn}"
cluster_jdbcurl = "jdbc:redshift://${data.aws_redshift_cluster.test_cluster.endpoint}/${data.aws_redshift_cluster.test_cluster.database_name}"
username = "testuser"
password = "T3stPass"
data_table_name = "test-table"
copy_options = "delimiter '|'" # the default delimiter
data_table_columns = "test-col"
}
}
Argument Reference
The following arguments are supported:
cluster_identifier
- (Required) The cluster identifier
Attribute Reference
In addition to all arguments above, the following attributes are exported:
allow_version_upgrade
- Whether major version upgrades can be applied during maintenance periodautomated_snapshot_retention_period
- The backup retention periodavailability_zone
- The availability zone of the clusterbucket_name
- The name of the S3 bucket where the log files are to be storedcluster_identifier
- The cluster identifiercluster_parameter_group_name
- The name of the parameter group to be associated with this clustercluster_public_key
- The public key for the clustercluster_revision_number
- The cluster revision numbercluster_security_groups
- The security groups associated with the clustercluster_subnet_group_name
- The name of a cluster subnet group to be associated with this clustercluster_type
- The cluster typedatabase_name
- The name of the default database in the clusterelastic_ip
- The Elastic IP of the clusterenable_logging
- Whether cluster logging is enabledencrypted
- Whether the cluster data is encryptedendpoint
- The cluster endpointenhanced_vpc_routing
- Whether enhanced VPC routing is enablediam_roles
- The IAM roles associated to the clusterkms_key_id
- The KMS encryption key associated to the clustermaster_username
- Username for the master DB usernode_type
- The cluster node typenumber_of_nodes
- The number of nodes in the clusterport
- The port the cluster responds onpreferred_maintenance_window
- The maintenance windowpublicly_accessible
- Whether the cluster is publicly accessibles3_key_prefix
- The folder inside the S3 bucket where the log files are storedtags
- The tags associated to the clustervpc_id
- The VPC Id associated with the clustervpc_security_group_ids
- The VPC security group Ids associated with the cluster
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/d/redshift_cluster.html