CloudFormation nested-stack templates for generic Python Lambda functions (i.e. making calls to an API) with its source code in Github.
CloudFormation nested-stack templates for generic Python Lambda functions (i.e. making calls to an API) with its source code in Github.
Put yaml files in some S3 bucket in the same region as you want your resources be created in.
Create a repo for your function source-code. An example can be found here: https://github.com/vahdet/python-lambda-template/
Create and note down a Github personal access token: we will use it for GitHubOAuthToken
. The token should have scopes:
See https://docs.aws.amazon.com/lambda/latest/dg/build-pipeline.html#setup-repository
Having AWS CLI installed the following command can be run for a file.
aws cloudformation validate-template --template-body file://{yaml_file_name}