Deploying a serverless application and enabling DevOps Guru
In this section, we will deploy a serverless application using a CloudFormation template. This CloudFormation template will create a few resources, as follows:
- A DynamoDB table
- Two Lambda functions and some roles
- One API gateway and methods
This CloudFormation template has been cloned and modified from the AWS DevOps Guru sample repository provided by AWS, but we will be using this only to create application-related AWS resources with some modification. After that, we will enable DevOps Guru on the application stack.
Perform the following steps to deploy the stack:
- Configure the
awscli
credentials and configure the output asjson
. Installjq
by running the following command:$ sudo yum install jq -y
- Install
python3.6
andpip 20.2.3
:$ sudo yum install python36 -y $ sudo python3 -m pip install --upgrade pip
- Install Python modules:
$ pip3 install requests
- Clone the sample code:
$ git...