Skip to content

Terraform module for deploying an AWS Lambda that generates Let's Encrypt certificates via Certbot

Notifications You must be signed in to change notification settings

flowkey/terraform-aws-certbot-lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Certbot Lambda

This module deploys an AWS Lambda function that generates Let's Encrypt certificates via certbot, for the given domains. The Lambda is triggered by a CloudWatch event rule whose schedule can be set through the 'function_trigger_schedule_expression' variable.

Examples

The following example will deploy a Lambda that will generate certificates for test.example.com:

module "certbot_lambda_test" {
  source                                = "../../"
  
  # This is used for naming resources
  name                                  = "test"
  
  # This email used by Let's Encrypt for sending notifications about certificates
  contact_email                         = "admin@example.com"
  
  # This is the domain for the certificate
  certificate_domains                   = "test.example.com"
  
  # This zone will be automatically updated to meet the DNS challenge required by Let's Encrypt
  hosted_zone_id                        = aws_route53_record.example_com.zone_id
  
  # This is a cron-like expressions that determines when the Lambda is triggered
  function_trigger_schedule_expression  = "cron(12 20 * * ? *)"
}

About

Terraform module for deploying an AWS Lambda that generates Let's Encrypt certificates via Certbot

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.0%
  • C 1.3%
  • CSS 0.6%
  • JavaScript 0.1%
  • C++ 0.0%
  • HCL 0.0%