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.
Install
// for CDKv2
npm install cdk-certbot-dns-route53
or
npm install cdk-certbot-dns-route53@latest
Support Python Lambda Runtime. 2023/12/17
Support enabled Lambda Function Url.
import * as r53 from 'aws-cdk-lib/aws-route53';
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as cdk from 'aws-cdk-lib';
import { CertbotDnsRoute53JobPython } from 'cdk-certbot-dns-route53';
const mockApp = new cdk.App();
const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv });
const bucket = new s3.Bucket(stack, 'testingBucket');
const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', {
zoneName: mock.zoneName, hostedZoneId: mock.zoneId,
});
new CertbotDnsRoute53JobPython(stack, 'Testtask', {
certbotOptions: {
domainName: 'example.com',
email: 'user@example.com',
customPrefixDirectory: '/',
},
zone,
destinationBucket: bucket,
schedule: events.Schedule.cron({ month: '2' }),
enabledLambdaFunctionUrl: true,
});
Example: Invoke Lambda Function log.
Example: Renew certificate to store on S3 Bucket
Release files for cdk-certbot-dns-route53 2.5.129
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdk_certbot_dns_route53-2.5.129.tar.gz | 306.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_certbot_dns_route53-2.5.129-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 610.5 kB
Release files / cdk_certbot_dns_route53-2.5.129.tar.gz
| Download URL | cdk_certbot_dns_route53-2.5.129.tar.gz |
|---|---|
| Size | 306.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30bb1e7a0509d7eec1cb15b4cad4dd95b95f17954eb075be4b05a1e3117b8784
|
|
BLAKE2b-256 checksum How to use checksums |
066396c6a415754bec468bfbdb021c8a492de6377eb3c4d78eb394e6d7ece042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.6
|
Release files / cdk_certbot_dns_route53-2.5.129-py3-none-any.whl
| Download URL | cdk_certbot_dns_route53-2.5.129-py3-none-any.whl |
|---|---|
| Size | 304.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffe3169042bfad0e3b98f79a68711c4b8eb91841a1c0fe0b3b6e6740cfb1a27b
|
|
BLAKE2b-256 checksum How to use checksums |
6fec60ee888e647edb56a2975825e376b25b7d5c26320ceab4e8ae4082ca47b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.14.6
|