Installations
npm install cdk-certbot-dns-route53
Developer
neilkuan
Developer Guide
Module System
CommonJS
Min. Node Version
>= 20.10.0
Typescript Support
Yes
Node Version
20.10.0
NPM Version
10.2.3
Statistics
12 Stars
1,197 Commits
2 Forks
2 Watching
8 Branches
1 Contributors
Updated on 28 Nov 2024
Languages
TypeScript (72.87%)
Python (10.93%)
Shell (9.84%)
JavaScript (5.4%)
Dockerfile (0.95%)
Total Downloads
Cumulative downloads
Total Downloads
511,028
Last day
31.4%
180
Compared to previous day
Last week
22.8%
1,224
Compared to previous week
Last month
44.3%
7,281
Compared to previous month
Last year
-50.1%
138,268
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
2
Dev Dependencies
21
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
1Use the npm dist tag to opt in CDKv1 or CDKv2: 2 3// for CDKv2 4npm install cdk-certbot-dns-route53 5or 6npm install cdk-certbot-dns-route53@latest 7 8// for CDKv1 9npm install cdk-certbot-dns-route53@cdkv1
💡💡💡 please click here, if you are using aws-cdk v1.x.x version.💡💡💡
1import * as r53 from 'aws-cdk-lib/aws-route53';
2import * as s3 from 'aws-cdk-lib/aws-s3';
3import * as cdk from 'aws-cdk-lib';
4import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53';
5
6const devEnv = {
7 account: process.env.CDK_DEFAULT_ACCOUNT,
8 region: process.env.CDK_DEFAULT_REGION,
9};
10
11const app = new cdk.App();
12
13const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv });
14
15new CertbotDnsRoute53Job(stack, 'Demo', {
16 certbotOptions: {
17 domainName: '*.example.com',
18 email: 'user@example.com',
19 },
20 zone: r53.HostedZone.fromHostedZoneAttributes(stack, 'myZone', {
21 zoneName: 'example.com',
22 hostedZoneId: 'mockId',
23 }),
24 destinationBucket: s3.Bucket.fromBucketName(stack, 'myBucket', 'mybucket'),
25});
You can define Lambda Image Architecture now. 2022/04/19
1import * as r53 from 'aws-cdk-lib/aws-route53';
2import * as s3 from 'aws-cdk-lib/aws-s3';
3import * as lambda from 'aws-cdk-lib/aws-lambda';
4import * as cdk from 'aws-cdk-lib';
5import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53';
6
7const mockApp = new cdk.App();
8const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv });
9const bucket = new s3.Bucket(stack, 'testingBucket');
10const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', {
11 zoneName: mock.zoneName, hostedZoneId: mock.zoneId,
12});
13new CertbotDnsRoute53Job(stack, 'Testtask', {
14 certbotOptions: {
15 domainName: 'example.com',
16 email: 'user@example.com',
17 customPrefixDirectory: '/',
18 },
19 zone,
20 destinationBucket: bucket,
21 schedule: events.Schedule.cron({ month: '2' }),
22 architecture: lambda.Architecture.ARM_64, // <- like this way.
23});
24
Example: Invoke Lambda Function log.
Example: Renew certificate to store on S3 Bucket
Support Python Lambda Runtime. 2023/12/17
Support enabled Lambda Function Url.
1import * as r53 from 'aws-cdk-lib/aws-route53';
2import * as s3 from 'aws-cdk-lib/aws-s3';
3import * as lambda from 'aws-cdk-lib/aws-lambda';
4import * as cdk from 'aws-cdk-lib';
5import { CertbotDnsRoute53JobPython } from 'cdk-certbot-dns-route53';
6
7const mockApp = new cdk.App();
8const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv });
9const bucket = new s3.Bucket(stack, 'testingBucket');
10const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', {
11 zoneName: mock.zoneName, hostedZoneId: mock.zoneId,
12});
13new CertbotDnsRoute53JobPython(stack, 'Testtask', {
14 certbotOptions: {
15 domainName: 'example.com',
16 email: 'user@example.com',
17 customPrefixDirectory: '/',
18 },
19 zone,
20 destinationBucket: bucket,
21 schedule: events.Schedule.cron({ month: '2' }),
22 enabledLambdaFunctionUrl: true,
23});
24
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/build.yml:11
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/build.yml:62
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/build.yml:93
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/build.yml:127
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-cdkv1.yml:16
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-cdkv1.yml:69
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release-cdkv1.yml:95
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release-cdkv1.yml:135
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:16
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:69
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:95
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/release.yml:135
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-cdkv1.yml:13
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-cdkv1.yml:47
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-main.yml:47
- Info: jobLevel 'contents' permission set to 'read': .github/workflows/upgrade-main.yml:13
- Warn: no topLevel permission defined: .github/workflows/auto-approve.yml:1
- Warn: no topLevel permission defined: .github/workflows/build.yml:1
- Warn: no topLevel permission defined: .github/workflows/pull-request-lint.yml:1
- Warn: no topLevel permission defined: .github/workflows/release-cdkv1.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/upgrade-cdkv1.yml:1
- Warn: no topLevel permission defined: .github/workflows/upgrade-main.yml:1
Reason
9 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-248v-346w-9cwc
- Warn: Project is vulnerable to: GHSA-c33w-24p9-8m24
- Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f
- Warn: Project is vulnerable to: GHSA-6vqw-3v5j-54x4
- Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p
- Warn: Project is vulnerable to: GHSA-h4gh-qq45-vh27
- Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h
- Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56
- Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto-approve.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/auto-approve.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:96: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:100: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:133: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:145: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/build.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pull-request-lint.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/pull-request-lint.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:138: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:141: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:145: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-cdkv1.yml:153: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:110: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:138: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:141: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:145: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:153: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/upgrade-cdkv1.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-cdkv1.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/upgrade-main.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/neilkuan/cdk-certbot-dns-route53/upgrade-main.yml/main?enable=pin
- Warn: containerImage not pinned by hash: docker.d/Dockerfile:1: pin your Docker image by updating public.ecr.aws/lambda/python:3.12 to public.ecr.aws/lambda/python:3.12@sha256:92c88c1adc374b073b07b12bd4045497af7da68230d47c2b330423115c5850dc
- Warn: pipCommand not pinned by hash: docker.d/Dockerfile:3
- Info: 0 out of 47 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 containerImage dependencies pinned
- Info: 0 out of 1 pipCommand dependencies pinned
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Score
5
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to cdk-certbot-dns-route53
@aws-cdk/aws-route53resolver-alpha
The CDK Construct Library for AWS::Route53Resolver
@aws-sdk/client-route-53
AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native
aws-cdk-ses-domain-identity
Constructs for provisioning and referencing domain identities which can be used in SES RuleSets and Actions Construct.
@aws-sdk/middleware-sdk-route53
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-sdk-route53/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-route53) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-sdk-route53.svg)](https://www.npmj