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.
!!! Usage Note !!!
cdk-certbot-dns-route53 before version: 0.3.144
, support aws-cdk version: 1.xxx.xxx
.
cdk-certbot-dns-route53 start at version: 2.x.x
, support aws-cdk version: 2.xxx.xxx
.
# Example automatically generated from non-compiling source. May contain errors.
import * as r53 from 'aws-cdk-lib/aws-route53';
import * as s3 from 'aws-cdk-libaws-s3';
import * as cdk from 'aws-cdk-lib';
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-2.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e543882ffe42f5d254375405c419197d6d70ccfa0d97c146263add5ee53f120 |
|
MD5 | fe106e9a6f8a002251021d0d5c0e18ac |
|
BLAKE2b-256 | 400c327a220bc4d73cd7db90a033e3420b94cd29a3bf52b4ee2b1db9e9a0f25f |
Close
Hashes for cdk_certbot_dns_route53-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0394ed6109c86d21d089bf3b4b76d851226aa2229d2a617a101acb8f0309c7ee |
|
MD5 | f5553e3e8d15fa6286db325a9d479655 |
|
BLAKE2b-256 | 81a79d2a15ed8645c433b89aa7bc662b0395dfe6ff8aafdb46b48c860d4b1139 |