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. See https://github.com/aws/jsii/issues/826
import aws_cdk.aws_route53 as r53
import aws_cdk.aws_s3 as s3
import aws_cdk.core as cdk
from cdk_certbot_dns_route53 import CertbotDnsRoute53Job
dev_env = {
"account": process.env.CDK_DEFAULT_ACCOUNT,
"region": process.env.CDK_DEFAULT_REGION
}
app = cdk.App()
stack = cdk.Stack(app, "lambda-certbot-dev", env=dev_env)
CertbotDnsRoute53Job(stack, "Demo",
certbot_options={
"domain_name": "*.example.com",
"email": "user@example.com"
},
zone=r53.HostedZone.from_hosted_zone_attributes(stack, "myZone",
zone_name="example.com",
hosted_zone_id="mockId"
),
destination_bucket=s3.Bucket.from_bucket_name(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.120.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfc863646f9e2894b65be4a2258cb6d7e8c931c691b041148785d4a3e744e43 |
|
MD5 | 77c81b9d2d19667d5863f77d1100bf08 |
|
BLAKE2b-256 | 07bf7a6055a0ba2859f2c26a973ede626ae1944fd6de6d2b145a30f4aa84d3ee |
Close
Hashes for cdk_certbot_dns_route53-0.3.120-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d0e1d683f6bdb3d5c7fc8a0dde7e0ed12316fcc479e167b172e6d5db9010393 |
|
MD5 | a3fec6efc6604472273a4efaa00d0c02 |
|
BLAKE2b-256 | 2d537048602d079be49e841ec7859608b0aa27028fb079d88c79f880663c17b5 |