I am trying to make a call and retrieve meaningful data via the
“describe_instance” method within the Ruby AWS SDK. I’m pretty new to
ruby and it seems I’m missing something fundamental about nested
hashes…anyway…
Here is the doc I’m using as reference Amazon.com. Spend less. Smile more.
Here is how I set things up (I changed all the data):
aws_instance = @ec2.client.describe_instances(:instance_ids =>
[‘i-gggggg’])
aws_instance.describe_instance
for example, I would like to retrieve the “availability_zone” which
appears to be nested (in the documentation) within the “placement” hash
which is in the “instances” set.
Can someone form a sample call that I could use as a reference?