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.31.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9c138199303e77fb836520fc520b873292bae7eef1463820c2038121a9856b |
|
MD5 | a12afc35bd4fdd57c69e292512769c2a |
|
BLAKE2b-256 | 339aabc96d1ff7a9c06963cf68914bc7ccb373365a7b694a3840ff3d0af3eda2 |
Close
Hashes for cdk_certbot_dns_route53-0.3.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a902f2c0661a0c5454002c541c1ee5a5725fc6bca7251afec6256fe41ab7e0 |
|
MD5 | 417ec5feaaef57f5fec5499a5c8c649d |
|
BLAKE2b-256 | 667b0815fb2405b7c1e5a9a4d6643cb2e9bd7b8595c12cce70f1ee8e864de874 |