def get_dynamic_data(f)
      Net::HTTP.start('169.254.169.254') do |http|
        res = http.get("/latest/dynamic/#{f}", get_header())
        raise Fluent::ConfigError, "ec2-dynamic-data: failed to get #{f}" unless res.is_a?(Net::HTTPSuccess)
        res.body