Closed dumim closed 4 years ago
Hi, sorry you're running into this. What commands are you using to deploy your application? Are you using the chalice deploy
command or the chalice package
command? As far as I can tell your config.json and app.py file look correct so this should work without issues. One thing to keep in mind is if you're using chalice deploy
then the state file it uses to track what's deployed is a local file so if this is running in some type of CI system that doesn't persist files it's possible Chalice won't know what resources exist. The next steps would be to look at either the debug logs if you're using chalice deploy
or the generated template if you're using chalice package
.
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
@jamesls thanks for that and sorry for the delay in responding. I was using chalice deploy
. I have since moved to Serverless since I wasn't able to figure out the issue. Thanks
Hi,
I am using bitbucket pipelines (python image version 3.8.5) to deploy my pure lambda code that is triggered by a cloudwatch trigger. The lambda and the cloudwatch event rule is created and the is updated on AWS. But my layer is not added (under layers it shows
(0)
), and my enviornment variable is not set ([ERROR] KeyError: 'TEST_VAR'
error message when accessing the variable)My
config.json
is:and my
app.py
:Running
chalice --version
in the bitbucket pipeline during deployment showschalice 1.17.0, python 3.8.5, linux 4.19.128-flatcar
Any help, tips or insights will be appreciated. Been stuck on this for 4 days.