question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can't deploy (but I used to be able to)

See original GitHub issue
$ chalice gen-policy > .chalice/policy.json
$ chalice deploy
Updating IAM policy.
Updating lambda function...
Creating deployment package.
Sending changes to lambda.
Lambda deploy done.
API Gateway rest API already found.
Deleting root resource id
Done deleting existing resources.
Traceback (most recent call last):
  File "/Users/sandy/.virtualenvs/proj-env/bin/chalice", line 11, in <module>
    sys.exit(main())
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/chalice/cli/__init__.py", line 203, in main
    return cli(obj={})
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/chalice/cli/__init__.py", line 123, in deploy
    d.deploy(ctx.obj)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/chalice/deployer.py", line 204, in deploy
    rest_api_id, region_name, stage = self._deploy_api_gateway(config)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/chalice/deployer.py", line 402, in _deploy_api_gateway
    return self._create_resources_for_api(config, rest_api_id)
  File "/Users/sandy/.virtualenvs/proj-env/lib/python2.7/site-packages/chalice/deployer.py", line 458, in _create_resources_for_api
    config['config']['lambda_arn'])
KeyError: 'lambda_arn'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andriisoldatenkocommented, Jan 12, 2017

@sandywater still reproduce?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Me? Why Can't Someone Else Deploy?
In my experience, the reasons include: They are pregnant or within 1 year post-partum, both of which made you non-deployable.
Read more >
Troubleshooting Common Problems with Web Deploy
This walkthrough shows how to diagnose and fix common problems with Web Deploy, including common errors seen while publishing from Visual ...
Read more >
Cannot deploy my app - Visual Studio Feedback
Quite often, I'm not able to deploy my app. This is due mostly by the AppData folder that does not want to be...
Read more >
Cannot deploy my web application. I get the following error
Angular spa from vs code. Windows server. I get the error when deploying to the production slot. I just started getting the error...
Read more >
Troubleshooting common deployment issues - PhpStorm
This section provides the list of solutions and workarounds for common problems with deployments in PhpStorm.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found