DEV Community

Pavol Fulop
Pavol Fulop

Posted on • Originally published at Medium on

Introducing serverless-cloudfront-distribution-certificate

source: undraw.co

I was in a need for a serverless plugin to create a certificate for my CloudFront distribution. While there are some plugins that can request a certificate they usually can assign it only to APIGateway or they’ll create CloudFront distribution for you.

Existing plugins

https://github.com/schwamster/serverless-certificate-creator https://github.com/amplify-education/serverless-domain-manager

My plugin

What I needed is something that can simply assign a certificate to a domain associated with CloudFront distribution. This is already possible using CloudFormation ACM entry, but you’re required to validate the certificate all by yourself. If you don’t do that your stack creation progress will get stuck.

So this plugin easily creates the certificate if needed, creates a route53 entry to validate it and in the end assigns the certificate ARN to your CloudFront distribution.

If you feel like this is something you need, go check it out.

pfulop/serverless-cloudfront-distribution-certificate

Top comments (0)