Terraform module to setup and manage an AWS Redshift cluster
Name | Version |
---|---|
terraform | >= 0.12.0 |
aws | >= 4.0.0 |
Name | Version |
---|---|
aws | >= 4.0.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
database | The name of the first database to be created when the cluster is created | string |
n/a | yes |
ingress_cidr_blocks | List of CIDR blocks that should be allowed access to the Redshift cluster | list(string) |
n/a | yes |
logging_bucket | Name of the S3 bucket to write logging information to | string |
n/a | yes |
name | The name to identify the cluster by | string |
n/a | yes |
password | Password for the master DB user | string |
n/a | yes |
tags | A mapping of tags to assign to the cluster | map(string) |
n/a | yes |
username | Username for the master DB user | string |
n/a | yes |
additional_egress_rules | n/a | list(object({ |
[] |
no |
additional_ingress_rules | n/a | list(object({ |
[] |
no |
automated_snapshot_retention_period | The number of days automated snapshots should be retained | number |
1 |
no |
availability_zones | List of availability zones to deploy Redshift in | list(string) |
[] |
no |
cluster_type | The cluster type to use (either single-node or multi-node ) |
string |
"single-node" |
no |
egress_cidr_blocks | List of CIDR blocks that should be allowed access from the Redshift cluster | list(string) |
[] |
no |
enhanced_vpc_routing | If true enhanced VPC routing is enabled | bool |
false |
no |
final_snapshot_identifier | Identifier of the final snapshot to create before deleting the cluster | string |
"none" |
no |
force_destroy | A boolean that indicates all logging should be deleted when deleting the cluster | bool |
false |
no |
iam_roles | A list of IAM Role ARNs to associate with the cluster | list(string) |
[] |
no |
kms_key_arn | The ARN for the KMS encryption key to encrypt the Redshift cluster | string |
null |
no |
lifecycle_rule | List of maps containing lifecycle management configuration settings | any |
[] |
no |
logging | Enables logging information such as queries and connection attempts | bool |
true |
no |
node_type | The node type to be provisioned for the cluster | string |
"dc2.large" |
no |
number_of_nodes | The number of compute nodes in the cluster | number |
1 |
no |
publicly_accessible | Whether or not the Redshift cluster will be publicly accessible | bool |
false |
no |
redshift_subnet_group | Name of Redshift subnet group the cluster should be attached to | string |
null |
no |
skip_final_snapshot | Determines whether a final snapshot is created before deleting the cluster | bool |
false |
no |
subnet_ids | List of subnet IDs to deploy Redshift in | list(string) |
null |
no |
vpc_id | ID of the VPC to deploy Redshift in | string |
null |
no |
Name | Description |
---|---|
cluster_identifier | The cluster identifier |
database | The name of the default database in the cluster |
elastic_ip | The Elastic IP (EIP) address for the cluster |
endpoint | The connection endpoint |
id | The Redshift cluster ID |
port | The port the cluster responds on |
security_group_id | The ID of the security group associated with the cluster |
username | Username for the master DB user |