项目作者: b-b3rn4rd

项目描述 :
Golang AWS Lambda function - approves ACM issued certificates using CloudFormation custom resource
高级语言: Go
项目地址: git://github.com/b-b3rn4rd/acm-approver-lambda.git
创建时间: 2018-04-02T23:20:14Z
项目社区:https://github.com/b-b3rn4rd/acm-approver-lambda

开源协议:Apache License 2.0

下载


Build Status Go Report Card AWS CloudFormation ACM Approver Golang Custom Resource

AWS Lambda function — approves ACM certificates issued with DNS validation option.
Following lambda is written as a custom resource to automate certificate approval process in a stack.

Installation & Usage

Download code:

git clone https://github.com/b-b3rn4rd/acm-approver-lambda.git

Create CloudFormation stack

  1. $ S3_BUCKET_NAME=bucket-name DOMAIN_NAME=www.example.net make deploy
  2. ... ouput ....
  3. Waiting for changeset to be created..
  4. Waiting for stack create/update to complete
  5. Successfully created/updated stack - acm-approver-lamda

Following command will create CloudFormation stack, which provisions lambda function and invokes it as a custom resource
to request and confirm required certificate.

Known issues

I have not found a way to 100% accurately identify hosted zone id based on certificate’s domain name, currently I’m using longest match suffix approach.