My team is currently considering converting Zappa deployed Flask applications to be deployed via CI/CD using Terraform. However, there is not much documentation I could find around deploying Flask apps.
We’re looking for a lateral move over, so to have Terraform generate and perform the same tasks Zappa does.
I’m able to create the lambda and API gateway, however I’m running into a WSGI compatibility issue. There is a key error for ‘wsgi.url_scheme’ when the app attempts to run. A few articles mentioned using ‘awsgi’, but I don’t understand why Zappa does not have this issue when the same code is deployed that way.
Has anyone gone through this process of converting Zappa to Terraform?
Derek Botbyl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.