I have metrics (custom-metrics-namespace) with EnvironmentName dimension.
I have defined variable:
$enviromentName dimension_values(eu-west-1, custom-metrics-namespace, mem, EnvironmentName)
I want to define another variable like:
$autoScalingGroupName ec2_instance_attribute(eu-west-1, Tags.aws:autoscaling:groupName, { “tag:elasticbeanstalk:environment-name”: [ $environmentName ] })
but
I got error : Template variables could not be initialized: Unexpected token $ in JSON at position 45
How I can handle it ?