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:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sandywater still reproduce?
This should be fixed by https://github.com/awslabs/chalice/commit/ed6e2656b3f71054b9f1f03934a8e3c1b42405c3