DEV Community


Introducing serverless-cloudfront-distribution-certificate

Pavol Fulop
Web, Native and occasional Full-stack developer. Exploring AR...
Originally published at Medium on ・1 min read


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

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.


Discussion (0)