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 from non-compiling source. May contain errors.
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.124.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44cdce84cd885fa43a03425bcf559551c7d8d79e50308a10b8ff290b9a070df4 |
|
MD5 | 9d455e4370e44d4afbd30a8c5a95900e |
|
BLAKE2b-256 | b67b2a9dc5edce19ec2b6f961e38c6010d54ccfafac8ccbea0ec9b093e0eb7df |
Close
Hashes for cdk_certbot_dns_route53-0.3.124-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b2d3c62ca9b51a4ad7e2c3597450c242d5e41510e0f98e1eff8a1d768678c92 |
|
MD5 | 835cbfdb917c2eadbc6102c91ecdb1ab |
|
BLAKE2b-256 | 89a770c0b1bfd81260dabce6cd6d6437385b59ae6cc747bafc4ba6122bd3fb07 |