Let us install the AWS Command Line Interface on Linux or MacOs depending on your development platform.
Install AWS CLI on Linux:
1. Download the CLI package
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
2. Unzip the package or installer
$ unzip awscliv2.zip
3. Run the installer
$ sudo ./aws/install
Install AWS CLI on MacOS if you are on MacOS:
1. Download the CLI package
$ curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
2. Run the MacOS installer
$ sudo installer -pkg AWSCLIV2.pkg -target /
Now it is time to configure the AWS settings for interacting with your AWS resources. You will need to do this so that you can interact with your AWS resources via the command line. Also, the Serverless Zappa command line interface will use the configured AWS settings to deploy and execute your lambda functions.
Before starting, you will need to create an AWS IAM user credentials. Copy or download the access key and secret from your AWS console. For an introduction of AWS IAM, you can read this article and for the creation of an IAM user and credentails refer to this AWS documentation.
On your terminal execute:
$ aws configure
This will prompt you for the access key ID and an access key secret you created in your AWS console.
For quick testing purposes you can use an AdministratorAccess policy for deployment. For an execution policy, you can create a custom policy are described here: https://github.com/Miserlou/Zappa#using-custom-aws-iam-roles-and-policies