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.
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdk_certbot_dns_route53-2.4.713.tar.gz.
File metadata
- Download URL: cdk_certbot_dns_route53-2.4.713.tar.gz
- Upload date:
- Size: 43.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bba356dae5418c3ff9cae0b01c36cadb4d2e05ad9390fea3c517b465e6fa45e
|
|
| MD5 |
83d9a7a259116821d790074e54b502f2
|
|
| BLAKE2b-256 |
0ab07b4dd1f906b4ed0b785bc0e1bbb3eff636d834e2549bd578b4edd77f63f2
|
File details
Details for the file cdk_certbot_dns_route53-2.4.713-py3-none-any.whl.
File metadata
- Download URL: cdk_certbot_dns_route53-2.4.713-py3-none-any.whl
- Upload date:
- Size: 42.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a78a59a605b6fca957d56eca7674f57d52d4fb47374bdad5dc58fa500dcc1ea5
|
|
| MD5 |
97dd97c2e095c15af324e2d6dc347056
|
|
| BLAKE2b-256 |
f524f5b421b61f0584feebb131faf98d985f74524033396fe53f6b7810f13206
|