diff --git a/ecs-service.cfndsl.rb b/ecs-service.cfndsl.rb index d70c370..844dabd 100644 --- a/ecs-service.cfndsl.rb +++ b/ecs-service.cfndsl.rb @@ -198,11 +198,11 @@ if targetgroup.has_key?('rules') - atributes = [] + attributes = [] - targetgroup['atributes'].each do |key,value| - atributes << { Key: key, Value: value } - end if targetgroup.has_key?('atributes') + targetgroup['attributes'].each do |key,value| + attributes << { Key: key, Value: value } + end if targetgroup.has_key?('attributes') tags = [] tags << { Key: "Environment", Value: Ref("EnvironmentName") }