for some reason when I include the name parameter in my module config - I get an error thrown. When I remove or comment out the parameter, the error goes away and everything works as expected. I've tried to include the replication_group_id variable - but the same error is thrown as well. I'm using terragrunt and have a simple wrapper around your module. I'm not sure why it would work when the variable is missing but fail when its present?
terraform.tfvars
# ------------------------
# TERRAGRUNT CONFIGURATION
# ------------------------
terragrunt = {
terraform {
source = "git::git@github.com:myrepo/terraform-modules.git//aws/
database/elasticache/redis?ref=v1.4.0"
}
# Include all settings from the root terraform.tfvars file
include {
path = "${find_in_parent_folders()}"
}
}
# -------------------------------------------------------
# MODULE PARAMETERS
# These are the variables we have to pass in to use the
# module specifieid in the terragrunt configuration above
# -------------------------------------------------------
aws_region = "us-east-1"
environment = "production"
application = "streaming"
automatic_failover = "true"
vpc_remote_state_key = "account-production/us-east-1/prod/vpc/connection/terraform.tfstate"
cluster_size = "2"
route53_hosted_zone_id = "my-zone-id"
availability_zones = ["us-east-1a", "us-east-1b"]
namespace = "foo"
name = "app-cache"
security_groups = [
"sg-0123456790abc"
]
ERRORError: module.elasticache-redis.aws_elasticache_replication_group.default: "replication_group_id" must contain from 1 to 20 alphanumeric characters or hyphens
for some reason when I include the name parameter in my module config - I get an error thrown. When I remove or comment out the parameter, the error goes away and everything works as expected. I've tried to include the
replication_group_id
variable - but the same error is thrown as well. I'm using terragrunt and have a simple wrapper around your module. I'm not sure why it would work when the variable is missing but fail when its present?terraform.tfvars
variables.tf
main.tf
ERROR
Error: module.elasticache-redis.aws_elasticache_replication_group.default: "replication_group_id" must contain from 1 to 20 alphanumeric characters or hyphens