-
Select/Create a Project
-
Enable Google Sheet API
-
Create credential + server account
-
Download service account credential file in JSON format and update
server_account.json
-
Copy
client_email
from credential and share google sheet with this email
-
Run build script, following will be output --
a.
aws-googlesheet-lambda-layer.zip
- Lambda Layer for googlesheet packageb.
aws-tag-fetch-lambda.zip
- Lambda functionpip install -r requirements.txt bash aws-googlesheet-lambda-layer/build.sh bash build.sh
-
Upload Layer (
aws-googlesheet-lambda-layer.zip
) [ Runtime => Python 3.x ] -
Create Lambda function -
aws-tag-fetch-lambda
a. IAM Role policy access requirement - aws-policy.json
b. Environment Variables -
SHEET_ID SHEET_NAME SHEET_RANGE CUSTOM_TAGS
c. Resource requirement -
- Memory = 256 MB
- Timeout = 30 sec