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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73bd9cb1ff63acfd4cdf8cf948026244190fccd70f4819e26101fc3b0abf9ea0 |
|
MD5 | 4156ccc4f1cfc943571051429e28f793 |
|
BLAKE2b-256 | bb40de770b18a66fcdcbdfd1054b704d4a43737d2ec304090c14687684eb3789 |
Close
Hashes for cdk_certbot_dns_route53-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a10b2e98d8b321cb785c894589536c0734b4b9ba591adc4de04dfae9e374b8e |
|
MD5 | 773c1eefa40071ee31cc02024331dd5a |
|
BLAKE2b-256 | 6310dee77a8b8bfc96200aca6dca87633f6d948a9142e67e8a80b2e8706a5f97 |