In this section, we will learn how to deploy the SAM applications. We have already learned what SAM applications and code look like, so we will learn how to deploy them via AWS CloudFormation:
- Firstly, let's set up our local environment for deployment purposes, and then start by installing awscli from pip:
- Next, you will need to configure your AWS environment using your credentials:
- You will need to enter the following details to make sure your AWS environment is successfully configured:
- Your AWS Access Key
- Your AWS Secret Key
- The default region in which you want to operate
- The default output format in which you want your data
- Now, let's try to deploy a simple Hello World Lambda application via SAM. We will have two code files for this. One is the Python file and the other is the template yaml file.
- We will use the default Hello World...