March 2019
Intermediate to advanced
168 pages
4h 33m
English
I've created a configuration file called common-variables.sh for each serverless project under ./bash/, which creates environment variables that are used by the AWS CLI and SAM. You will need to modify them with your AWS account details. This is done to lay the groundwork to support multiple AWS accounts in more than one region. Here is an example of common-variables.sh:
#!/bin/sh export profile="demo" export region="<your-aws-region>" export aws_account_id=$(aws sts get-caller-identity --query 'Account' --profile $profile | tr -d '\"') # export aws_account_id="<your-aws-accountid>" export template="lambda-dynamo-data-api" export bucket="<you-bucket-name>" export prefix="tmp/sam" # Lambda ...
Read now
Unlock full access