lib/terraforming/template/tf/redshift.erb in terraforming-0.12.0 vs lib/terraforming/template/tf/redshift.erb in terraforming-0.13.0
- old
+ new
@@ -1,6 +1,6 @@
<% clusters.each do |cluster| -%>
-resource "aws_redshift_cluster" "<%= cluster.cluster_identifier %>" {
+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" %>"