项目作者: vahdet

项目描述 :
CloudFormation nested-stack templates for generic Python Lambda functions (i.e. making calls to an API) with its source code in Github.
高级语言:
项目地址: git://github.com/vahdet/func-cicd-pipeline-cfn-template.git
创建时间: 2020-03-04T08:24:36Z
项目社区:https://github.com/vahdet/func-cicd-pipeline-cfn-template

开源协议:MIT License

下载


func-cicd-pipeline-cfn-template

CloudFormation nested-stack templates for generic Python Lambda functions (i.e. making calls to an API) with its source code in Github.

Prerequisites

  • 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:

    • repo
    • repo:status
    • admin:repo_hook

Development Notes

Creating a repository for the function source code

See https://docs.aws.amazon.com/lambda/latest/dg/build-pipeline.html#setup-repository

Testing validity of templates

Having AWS CLI installed the following command can be run for a file.

  1. aws cloudformation validate-template --template-body file://{yaml_file_name}

References