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 certificat 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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d1b341885449747f4b03ebfd5bc03cd8995a0d51f0acbede26c2fefabd2102 |
|
MD5 | 723a40b7f65dec9ca472035bffc7c8f6 |
|
BLAKE2b-256 | 77ed057ef20402e34df14d7e83550856310fb35a19b754e80c78394234cf6f8e |
Close
Hashes for cdk_certbot_dns_route53-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96ce89e4a9abe8b91674e866ded782172fa26f473204e7c2153d0c7ae25769dc |
|
MD5 | e4f3ecb0006f89901e5232c5c7e4aec9 |
|
BLAKE2b-256 | 1b9eab29bd181df7e73ae231a6eb14a65b072a6fd7f750749a896440e776239d |