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.52.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea46e19ea28ac7da259d3fbf20a10f06377d4084e31b6d4f6cec5b072fb1395f |
|
MD5 | b03286a474e859fa1bd304c2ebe1e269 |
|
BLAKE2b-256 | 7007c99c296d67f3a6be7a3c4ae45d605d56bc69e98eb9f68b10a1c565c016f4 |
Close
Hashes for cdk_certbot_dns_route53-0.3.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932f7d78e0e64bd144e0fa79170b1ceeea291fe5d3746f405a655027a163879d |
|
MD5 | 2b84926d253c95b3a4db348cfcad2b39 |
|
BLAKE2b-256 | 30b412501bcdeddbdc04d457fd7e4b44060af2840fce3bca9c37621a34865f03 |