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 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.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a994f7945d2e215692121624ccba475318f7c8e6e17d2f6bf3a663763ef417ce |
|
MD5 | 33760ee653428be6f472b5b329bde8ab |
|
BLAKE2b-256 | ac4f92473d6dfed7b29b2cd26719f933a159cfdf10538fc193af1c3cf562d714 |
Close
Hashes for cdk_certbot_dns_route53-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd7c72bb2e9e747040a53c87c08d8c30b0ad360332cdd944538455cec07f4c8d |
|
MD5 | fcb7eb563edc2eed96547854fd3e2183 |
|
BLAKE2b-256 | 172c10f9a7222261a00ce8f2ed275938974fbdc273dede3e05ec1d5272efdf9d |