Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'Runtime' #216

Open
cabal-daniel opened this issue Sep 9, 2022 · 1 comment
Open

KeyError: 'Runtime' #216

cabal-daniel opened this issue Sep 9, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@cabal-daniel
Copy link

cabal-daniel commented Sep 9, 2022

Traceback (most recent call last):
  File "/Users/danhu/fileread/cabal/bin/newrelic-lambda", line 8, in <module>
    sys.exit(main())
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/cli/__init__.py", line 25, in main
    cli()
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/cli/layers.py", line 126, in install
    install_success = all(future.result() for future in as_completed(futures))
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/cli/layers.py", line 126, in <genexpr>
    install_success = all(future.result() for future in as_completed(futures))
  File "/usr/local/Cellar/[email protected]/3.9.13_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/Cellar/[email protected]/3.9.13_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/usr/local/Cellar/[email protected]/3.9.13_3/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/utils.py", line 61, in _boto_error_wrapper
    return func(*args, **kwargs)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/layers.py", line 261, in install
    update_kwargs = _add_new_relic(input, config, nr_license_key)
  File "/Users/danhu/fileread/cabal/lib/python3.9/site-packages/newrelic_lambda_cli/layers.py", line 86, in _add_new_relic
    runtime = config["Configuration"]["Runtime"]

Description

Steps to Reproduce

newrelic-lambda layers install --nr-account-id XXXXX --function all --upgrade

Expected Behaviour

Relevant Logs / Console output

Your Environment

  • python3.9
  • AWS
  • lambdas deployed with serverless framework
  • Lambdas are containerized
  • Runtime is supposed to python3.9
frameworkVersion: '3'

provider:
  name: aws
  region: us-west-2
  runtime: python3.9
  architecture: arm64
  memorySize: 128

Not sure if runtime is always supposed to be returned. Perhaps serverless ignores it if we are using a containerized environment?

  • ex: Browser name and version:
  • ex: Operating System and version:

Additional context

@cabal-daniel cabal-daniel added the bug Something isn't working label Sep 9, 2022
@hmstepanek
Copy link
Contributor

We don't support containerized lambdas. We do already have a feature request open to support it in our backlog.

@hmstepanek hmstepanek added enhancement New feature or request and removed bug Something isn't working labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants