title: How can I make AWS lambda find the grpc dependency in my function?
body: <p>GRPC is giving me fits here:</p>
  
  <pre><code>{
    "errorMessage": "Could not find 'grpc' (~&gt; 1.24) among 281 total gem(s)\nChecked in 'GEM_PATH=/var/task/vendor/bundle/ruby/2.5.0:/opt/ruby/gems/2.5.0:/var/runtime', execute `gem env` for more information",
    "errorType": "Init&lt;Gem::MissingSpecError&gt;",
    "stackTrace": [
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/dependency.rb:311:in `to_specs'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1402:in `block in activate_dependencies'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1391:in `each'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1391:in `activate_dependencies'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1373:in `activate'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems.rb:215:in `rescue in try_activate'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems.rb:208:in `try_activate'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:161:in `rescue in require'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:35:in `require'",
      "/var/task/vendor/bundle/ruby/2.5.0/gems/google-cloud-dialogflow-0.14.0/lib/google/cloud/dialogflow.rb:16:in `&lt;top (required)&gt;'",
      "/var/task/google_dialog.rb:3:in `require_relative'",
      "/var/task/google_dialog.rb:3:in `&lt;top (required)&gt;'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:168:in `require'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:168:in `rescue in require'",
      "/var/lang/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:35:in `require'"
    ]
  }
  </code></pre>
  
  <p>I see it at <code>vendor/bundle/ruby/2.5.0/gems/grpc-1.27.0-universal-darwin/src/ruby/lib/grpc.rb</code></p>
  
  <p>I'm writing a simple Ruby class to hook into Dialogflow, and the google gem is fairly heavy with a lot of dependencies.  I've written some tests that all pass locally and in the context of the Rails application from where I'm extracting this bit of code.  I'll need Nokogiri, but it appears that Google is the big user of the GRPC stuff.  And it just won't find that file when when I specify is manually.  Any help is greatly appreciated.</p>