Create Cron Job Via Lmabda, to update certificat 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 Lmabda 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.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 101a93cc365c03d2ee1108e3440b2aff46bcb55ee7929a4ae7d18e837b5db1bc |
|
MD5 | afb2c4ba633a668de3178c8c51355dac |
|
BLAKE2b-256 | 331c2d2964dc24f190e4ce17adabb4e5c191c2c62d2c6feda170b35180ccf184 |
Close
Hashes for cdk_certbot_dns_route53-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82b5b0a06704a30d36b850e90004b48b0fa3ab1a1ac2c4498b668199f53b737 |
|
MD5 | 7301056d2b093eb3e7e17ac76650dac6 |
|
BLAKE2b-256 | 9ef2f44be7748f15ca3a824f1afa60ff7bde38e0566f3ca95a2aa9a0e55df733 |