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 without compilation. 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.49.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a07991f251a41eb2f79d13a3825942bb7b835d7485c6369a333fa0292a12348 |
|
MD5 | 889fbb50453ba0259e852a8de4345c7f |
|
BLAKE2b-256 | 8d37e5d445ac12e625be042cb2a4aef7a258aeb19d602a279be318f3f871e46f |
Close
Hashes for cdk_certbot_dns_route53-0.3.49-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561e394d9fd6a859ca82ca0da2ba4338dfe4516635a2e6b044223d6fb89ef55d |
|
MD5 | 4f9a5282c7fadc29e6d2a4330d6b2d41 |
|
BLAKE2b-256 | 8df6b5e39be78d057ae6860148d1ec48045b7c7f14e40e0acaa70075abfc33a4 |