Create Cron Job Via Lambda, to update certificate and put it to S3 Bucket.
Project description
cdk-certbot-dns-route53
cdk-certbot-dns-route53 is a CDK construct library that allows you to create Certbot Lambda Function on AWS with CDK, and setting schedule cron job to renew certificate to store on S3 Bucket.
# Example automatically generated from non-compiling source. May contain errors.
import * as r53 from '@aws-cdk/aws-route53';
import * as s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';
import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53';
const devEnv = {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
};
const app = new cdk.App();
const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv });
new CertbotDnsRoute53Job(stack, 'Demo', {
certbotOptions: {
domainName: '*.example.com',
email: 'user@example.com',
},
zone: r53.HostedZone.fromHostedZoneAttributes(stack, 'myZone', {`
zoneName: 'example.com',
hostedZoneId: 'mockId',
}),
destinationBucket: s3.Bucket.fromBucketName(stack, 'myBucket', 'mybucket'),
});
Example: Invoke Lambda Function log.
Example: Renew certificate to store on S3 Bucket
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdk-certbot-dns-route53-0.3.143.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5753e25778d66033fe9e81cd9663072dcf1dd7f010b1de087c4d90901b6d7c |
|
MD5 | cc351a0f90ba5d2ae99a5ba1f5a4579c |
|
BLAKE2b-256 | a53b1bd5c1cdbeeac2a4681d8795b52a82a6510bc4050a8f75f7de5ceef8d26e |
Close
Hashes for cdk_certbot_dns_route53-0.3.143-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8f344626940c58af29a55718c4320c5885d70cc8d75b6317808c12fcf44e757 |
|
MD5 | eea2f3946b22740f8a2ea949765abaf1 |
|
BLAKE2b-256 | a6c28cf67a399a2ee4e7796783a3f7891034bae43f6338ca6f7303fc1ac11ff8 |