Install AWS SAM CLI
# install docker
sudo yum install -y docker
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
bash
docker version
docker ps
# install the aws sam cli
pip3 install aws-sam-cli
AWS Documentation