In this section, we will discuss the deployment of a serverless application. I'm not referring to just running the serverless deploy
command, what I mean is that you need to know and define how to handle and manage new versions of your application in the production environment.
Can you hit the deploy button at any time of the day? What are the implications? How can you create a replica of the production environment just for testing? Those are the kind of things that will be discussed in this section.
Deploying a new version of a Lambda function is a simple task. We run a command and the framework is responsible for packaging the contents and uploading them to AWS. However, running the serverless deploy
command usually takes a couple of minutes. The problem is not the time to upload the ZIP file, but what the framework needs to update using CloudFormation. A new CloudFormation template needs to be issued asking AWS to update all related resources...