Closed ps-jay closed 4 years ago
And while I was writing this ... I noticed "Key"
is unexpected, but :key
is missing.
With terrible ruby skills, I got this to work
def normalize_tags(tags)
if tags.is_a?(Hash)
tags.map do |key, value|
{ :key => key, :value => value.to_s }
end
else
puts "XXX"
temp = []
for t in tags do
temp += [{ :key => t['Key'], :value => t['Value'].to_s }]
end
end
return temp
end
I should be able to clean that up and submit a PR.
Closed via #84
With a .json file of tags in AWS format ... I get errors from
stackup some-stack up ...
:Tags file:
Errors:
I realise these come from the aws-sdk .. so it may not be Stackup's issue ?
In hash style, it works fine. e.g.
FYI, I'm using the Stackup docker container:
realestate/stackup 1.4.5 247f28127230 2 months ago 51MB