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.111.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6de7c0379a08e2d846b94c5d404c820765c9125621c9c1de129af5780753b837 |
|
MD5 | 259c0364d6c361b0fe959fa3c2d97a68 |
|
BLAKE2b-256 | f1d711244989ebd50cd3487adab79d81a1b142ecd6352ec62375999b59d1a53d |
Close
Hashes for cdk_certbot_dns_route53-0.3.111-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22b38e64c4f38e9277e55b911c2e329017b43d44a4f525a31dfc858a281e518 |
|
MD5 | 81816759546a0214e9bc7681d6f5295f |
|
BLAKE2b-256 | 7171bb6036bfa3dffd51a1d1fe6c642d2ae4da0227980ccaa9055d3245e435ea |