Skip to content

Golang AWS Lambda function - approves ACM issued certificates using CloudFormation custom resource

License

Notifications You must be signed in to change notification settings

b-b3rn4rd/acm-approver-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$ S3_BUCKET_NAME=bucket-name DOMAIN_NAME=www.example.net make deploy

... ouput ....
Waiting for changeset to be created..
Waiting for stack create/update to complete
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.

About

Golang AWS Lambda function - approves ACM issued certificates using CloudFormation custom resource

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published