Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes bug #565.
So there ended up being a couple issue that I fixed here, first being bug #565 which was fixed by making a change to the
awsclient.py
file.The second issue that I discovered while working on this bug was the following. If you do:
$ chalice new-project muck $ cd muck $ chalice deploy --no-autogen-policy
The same bug happens because the
policy-env.json
file does not exist. This results in a policy document of:being uploaded which throws a
MalformedPolicyDocument
error. In order to fix this issue I made changes to thedeployer.py
file. I removed the default policy and now raise aRuntimeError
and alert the user to the fact that they do not have apolicy-env.json
file.The last change that I made was to handle malformed json by adding nicer logging modeled after the config file loader.
Thanks!