libraries/ec2.rb
# fetch the network interface ID of an interface from the metadata endpoint
fetch the network interface ID of an interface from the metadata endpoint
fetch the network interface ID of an interface from the metadata endpoint
def query_network_interface_id(interface)
        mac = query_mac_address(interface)
        eni_id = open("http://169.254.169.254/latest/meta-data/network/interfaces/macs/#{mac}/interface-id", options = { proxy: false }, &:gets)
        Chef::Log.debug("#{interface} eni id is #{eni_id}")
        eni_id
      end
def query_network_interface_id ( interface ) mac = query_mac_address ( interface ) eni_id = open ( "http://169.254.169.254/latest/meta-data/network/interfaces/macs/#{mac}/interface-id" , options = { proxy : false } , & :gets ) Chef :: Log . debug ( "#{interface} eni id is #{eni_id}" ) eni_id end
fetch the network interface ID of an interface from the metadata endpoint
fetch the network interface ID of an interface from the metadata endpoint
interface