Commit 1e801064 authored by Mayur Nagekar's avatar Mayur Nagekar

Fix for the error: module.vpc.aws_redshift_subnet_group.redshift: only...

Fix for the error: module.vpc.aws_redshift_subnet_group.redshift: only lowercase alphanumeric characters and hyphens allowed in name

Read more: https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/180
parent 67c1e9fc
......@@ -220,7 +220,7 @@ resource "aws_subnet" "redshift" {
resource "aws_redshift_subnet_group" "redshift" {
count = "${var.create_vpc && length(var.redshift_subnets) > 0 ? 1 : 0}"
name = "${var.name}"
name = "${lower(var.name)}"
description = "Redshift subnet group for ${var.name}"
subnet_ids = ["${aws_subnet.redshift.*.id}"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment