Skip to main content

AWS Configuration

Description

Front end requires Web API connection to properly function.
Developer can point front end code to deployed remote API or run Web API Locally.

To run local API, AWS and Serverless must be configured locally.

Install AWS

Follow instructions below:

Serverless:

https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html

Install Serverless

Follow instructions below:

AWS CLI:

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

AWS Local Configuration

User must configure AWS CLI locally with IAM User credentials (Access Key and Key ID)

  1. Login to AWS IAM > Users

  2. Create and save Access Key for user.

    Example:
    Access Key: “AKIA1234JZABCDJGH2F6”
    Key ID: “kp123456wB11234blmabcdef4gTNqhAxwoQq8RJj”
    Region will be: us-east-1
  3. Use just created Access Key, Key ID and Region to configure local AWS CLI.

aws configure --profile gehan
  1. Enter your values from created key above.

Verify AWS configuration:

Verify config and credentials files in root ~/.aws folder.

Optionally, verify aws and serverless installation by checking location.

which aws
which serverless

Install JQ for macOS:

brew install jq

Install Serverless for macOS:

brew install serverless