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.144.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7683ab576d9a154787ae8d79d95492b1927190e834b1732e7a6bb31e3fcda0e4 |
|
MD5 | 34f5b8e49b984464f965fdf748dd5393 |
|
BLAKE2b-256 | 4c801aee99f7a429ec28668fa054b41940a928382b3c6ca09ad0aa01af548c8f |
Close
Hashes for cdk_certbot_dns_route53-0.3.144-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 079dd2017f9c0e531c6ef8bf68196d60dc3993755ccbbc4e7e7f71c3ee4888b6 |
|
MD5 | e3e8d364ddeaa1759cfd7312b5853cbf |
|
BLAKE2b-256 | feed83dac9d7cecdee3e994e2a538523a1d814e2a341809b231f66082574d1fb |