class Idlc::Deploy::Config
def get_region
def get_region # Get the current az from the instance metadata. metadata_endpoint = 'http://169.254.169.254/latest/meta-data/' az = Net::HTTP.get( URI.parse( metadata_endpoint + 'placement/availability-zone' ) ) # return az[0..-2] end