Metadata-Version: 2.1
Name: cdk-certbot-dns-route53
Version: 0.3.27
Summary: Create Cron Job Via Lambda, to update certificate and put it to S3 Bucket.
Home-page: https://github.com/neilkuan/cdk-certbot-dns-route53.git
Author: Neil Kuan<guan840912@gmail.com>
License: Apache-2.0
Project-URL: Source, https://github.com/neilkuan/cdk-certbot-dns-route53.git
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Typing :: Typed
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: aws-cdk.aws-events-targets (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-events (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-iam (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-lambda (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-logs (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-route53 (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.aws-s3 (<2.0.0,>=1.110.1)
Requires-Dist: aws-cdk.core (<2.0.0,>=1.110.1)
Requires-Dist: cdk-lambda-bash (==0.5.50)
Requires-Dist: constructs (<4.0.0,>=3.2.27)
Requires-Dist: jsii (<2.0.0,>=1.32.0)
Requires-Dist: publication (>=0.0.3)

[![NPM version](https://badge.fury.io/js/cdk-certbot-dns-route53.svg)](https://badge.fury.io/js/cdk-certbot-dns-route53)
[![PyPI version](https://badge.fury.io/py/cdk-certbot-dns-route53.svg)](https://badge.fury.io/py/cdk-certbot-dns-route53)
[![Release](https://github.com/neilkuan/cdk-certbot-dns-route53/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/neilkuan/cdk-certbot-dns-route53/actions/workflows/release.yml)

# cdk-certbot-dns-route53

**cdk-certbot-dns-route53** is a CDK construct library that allows you to create [Certbot](https://github.com/certbot/certbot) Lambda Function on AWS with CDK, and setting schedule cron job to renew certificate to store on S3 Bucket.

```python
# 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.

![](./images/lambda-logs.png)

### Example: Renew certificate to store on S3 Bucket

![](./images/s3-bucket.png)


