Sha256: 40eb7253305160a1096138f9e52ada8fe32b7c42cc8cda354d06a43dc69052ec

Contents?: true

Size: 1.44 KB

Versions: 10

Compression:

Stored size: 1.44 KB

Contents

<% clusters.each do |cluster| -%>
resource "aws_redshift_cluster" "<%= module_name_of(cluster) %>" {
    cluster_identifier                  = "<%= cluster.cluster_identifier %>"
<%- if cluster.db_name -%>
    database_name                       = "<%= cluster.db_name %>"
<%- end -%>
    cluster_type                        = "<%= cluster.number_of_nodes == 1 ? "single-node" : "multi-node" %>"
    node_type                           = "<%= cluster.node_type %>"
    master_password                     = "xxxxxxxx"
    master_username                     = "<%= cluster.master_username %>"
    availability_zone                   = "<%= cluster.availability_zone %>"
    preferred_maintenance_window        = "<%= cluster.preferred_maintenance_window %>"
    cluster_parameter_group_name        = "<%= cluster.cluster_parameter_groups[0].parameter_group_name %>"
    automated_snapshot_retention_period = "<%= cluster.automated_snapshot_retention_period %>"
    port                                = "<%= cluster.endpoint.port %>"
    cluster_version                     = "<%= cluster.cluster_version %>"
    allow_version_upgrade               = "<%= cluster.allow_version_upgrade %>"
    number_of_nodes                     = "<%= cluster.number_of_nodes %>"
    publicly_accessible                 = "<%= cluster.publicly_accessible %>"
    encrypted                           = "<%= cluster.encrypted %>"
    skip_final_snapshot                 = "true"
}
<% end -%>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/redshift.erb
terraforming-0.17.0 lib/terraforming/template/tf/redshift.erb
terraforming-0.16.0 lib/terraforming/template/tf/redshift.erb
terraforming-0.15.0 lib/terraforming/template/tf/redshift.erb
aws-insight-0.14.1 lib/terraforming/template/tf/redshift.erb
aws-insight-0.14.0 lib/terraforming/template/tf/redshift.erb
terraforming-0.14.0 lib/terraforming/template/tf/redshift.erb
terraforming-0.13.2 lib/terraforming/template/tf/redshift.erb
terraforming-0.13.1 lib/terraforming/template/tf/redshift.erb
terraforming-0.13.0 lib/terraforming/template/tf/redshift.erb