diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-cdk-certbot-dns-route53.spec | 350 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 352 insertions, 0 deletions
@@ -0,0 +1 @@ +/cdk-certbot-dns-route53-2.1.338.tar.gz diff --git a/python-cdk-certbot-dns-route53.spec b/python-cdk-certbot-dns-route53.spec new file mode 100644 index 0000000..911dcef --- /dev/null +++ b/python-cdk-certbot-dns-route53.spec @@ -0,0 +1,350 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cdk-certbot-dns-route53 +Version: 2.1.338 +Release: 1 +Summary: Create Cron Job Via Lambda, to update certificate and put it to S3 Bucket. +License: Apache-2.0 +URL: https://github.com/neilkuan/cdk-certbot-dns-route53.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1c/ad/9bef8e7198be4f7e420a413e5b25e7fb90a450dfcda17f671bf84c0568da/cdk-certbot-dns-route53-2.1.338.tar.gz +BuildArch: noarch + +Requires: python3-aws-cdk-lib +Requires: python3-constructs +Requires: python3-jsii +Requires: python3-publication +Requires: python3-typeguard + +%description +[](https://badge.fury.io/js/cdk-certbot-dns-route53) +[](https://badge.fury.io/py/cdk-certbot-dns-route53) +[](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. + +## Install + +```bash +Use the npm dist tag to opt in CDKv1 or CDKv2: + +// for CDKv2 +npm install cdk-certbot-dns-route53 +or +npm install cdk-certbot-dns-route53@latest + +// for CDKv1 +npm install cdk-certbot-dns-route53@cdkv1 +``` + +💡💡💡 please click [here](https://github.com/neilkuan/cdk-certbot-dns-route53/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const devEnv = { + account: process.env.CDK_DEFAULT_ACCOUNT, + region: process.env.CDK_DEFAULT_REGION, +}; + +const app = new cdk.App(); + +const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv }); + +new CertbotDnsRoute53Job(stack, 'Demo', { + certbotOptions: { + domainName: '*.example.com', + email: 'user@example.com', + }, + zone: r53.HostedZone.fromHostedZoneAttributes(stack, 'myZone', { + zoneName: 'example.com', + hostedZoneId: 'mockId', + }), + destinationBucket: s3.Bucket.fromBucketName(stack, 'myBucket', 'mybucket'), +}); +``` + +### You can define Lambda Image Architecture now. 2022/04/19 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as lambda from 'aws-cdk-lib/aws-lambda'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv }); +const bucket = new s3.Bucket(stack, 'testingBucket'); +const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', { + zoneName: mock.zoneName, hostedZoneId: mock.zoneId, +}); +new CertbotDnsRoute53Job(stack, 'Testtask', { + certbotOptions: { + domainName: 'example.com', + email: 'user@example.com', + customPrefixDirectory: '/', + }, + zone, + destinationBucket: bucket, + schedule: events.Schedule.cron({ month: '2' }), + architecture: lambda.Architecture.ARM_64, // <- like this way. +}); +``` + +### Example: Invoke Lambda Function log. + + + +### Example: Renew certificate to store on S3 Bucket + + + + +%package -n python3-cdk-certbot-dns-route53 +Summary: Create Cron Job Via Lambda, to update certificate and put it to S3 Bucket. +Provides: python-cdk-certbot-dns-route53 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cdk-certbot-dns-route53 +[](https://badge.fury.io/js/cdk-certbot-dns-route53) +[](https://badge.fury.io/py/cdk-certbot-dns-route53) +[](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. + +## Install + +```bash +Use the npm dist tag to opt in CDKv1 or CDKv2: + +// for CDKv2 +npm install cdk-certbot-dns-route53 +or +npm install cdk-certbot-dns-route53@latest + +// for CDKv1 +npm install cdk-certbot-dns-route53@cdkv1 +``` + +💡💡💡 please click [here](https://github.com/neilkuan/cdk-certbot-dns-route53/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const devEnv = { + account: process.env.CDK_DEFAULT_ACCOUNT, + region: process.env.CDK_DEFAULT_REGION, +}; + +const app = new cdk.App(); + +const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv }); + +new CertbotDnsRoute53Job(stack, 'Demo', { + certbotOptions: { + domainName: '*.example.com', + email: 'user@example.com', + }, + zone: r53.HostedZone.fromHostedZoneAttributes(stack, 'myZone', { + zoneName: 'example.com', + hostedZoneId: 'mockId', + }), + destinationBucket: s3.Bucket.fromBucketName(stack, 'myBucket', 'mybucket'), +}); +``` + +### You can define Lambda Image Architecture now. 2022/04/19 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as lambda from 'aws-cdk-lib/aws-lambda'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv }); +const bucket = new s3.Bucket(stack, 'testingBucket'); +const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', { + zoneName: mock.zoneName, hostedZoneId: mock.zoneId, +}); +new CertbotDnsRoute53Job(stack, 'Testtask', { + certbotOptions: { + domainName: 'example.com', + email: 'user@example.com', + customPrefixDirectory: '/', + }, + zone, + destinationBucket: bucket, + schedule: events.Schedule.cron({ month: '2' }), + architecture: lambda.Architecture.ARM_64, // <- like this way. +}); +``` + +### Example: Invoke Lambda Function log. + + + +### Example: Renew certificate to store on S3 Bucket + + + + +%package help +Summary: Development documents and examples for cdk-certbot-dns-route53 +Provides: python3-cdk-certbot-dns-route53-doc +%description help +[](https://badge.fury.io/js/cdk-certbot-dns-route53) +[](https://badge.fury.io/py/cdk-certbot-dns-route53) +[](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. + +## Install + +```bash +Use the npm dist tag to opt in CDKv1 or CDKv2: + +// for CDKv2 +npm install cdk-certbot-dns-route53 +or +npm install cdk-certbot-dns-route53@latest + +// for CDKv1 +npm install cdk-certbot-dns-route53@cdkv1 +``` + +💡💡💡 please click [here](https://github.com/neilkuan/cdk-certbot-dns-route53/tree/cdkv1#readme), if you are using aws-cdk v1.x.x version.💡💡💡 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const devEnv = { + account: process.env.CDK_DEFAULT_ACCOUNT, + region: process.env.CDK_DEFAULT_REGION, +}; + +const app = new cdk.App(); + +const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv }); + +new CertbotDnsRoute53Job(stack, 'Demo', { + certbotOptions: { + domainName: '*.example.com', + email: 'user@example.com', + }, + zone: r53.HostedZone.fromHostedZoneAttributes(stack, 'myZone', { + zoneName: 'example.com', + hostedZoneId: 'mockId', + }), + destinationBucket: s3.Bucket.fromBucketName(stack, 'myBucket', 'mybucket'), +}); +``` + +### You can define Lambda Image Architecture now. 2022/04/19 + +```python +import * as r53 from 'aws-cdk-lib/aws-route53'; +import * as s3 from 'aws-cdk-lib/aws-s3'; +import * as lambda from 'aws-cdk-lib/aws-lambda'; +import * as cdk from 'aws-cdk-lib'; +import { CertbotDnsRoute53Job } from 'cdk-certbot-dns-route53'; + +const mockApp = new cdk.App(); +const stack = new cdk.Stack(mockApp, 'teststack', { env: devEnv }); +const bucket = new s3.Bucket(stack, 'testingBucket'); +const zone = r53.HostedZone.fromHostedZoneAttributes(stack, 'zone', { + zoneName: mock.zoneName, hostedZoneId: mock.zoneId, +}); +new CertbotDnsRoute53Job(stack, 'Testtask', { + certbotOptions: { + domainName: 'example.com', + email: 'user@example.com', + customPrefixDirectory: '/', + }, + zone, + destinationBucket: bucket, + schedule: events.Schedule.cron({ month: '2' }), + architecture: lambda.Architecture.ARM_64, // <- like this way. +}); +``` + +### Example: Invoke Lambda Function log. + + + +### Example: Renew certificate to store on S3 Bucket + + + + +%prep +%autosetup -n cdk-certbot-dns-route53-2.1.338 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-cdk-certbot-dns-route53 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.338-1 +- Package Spec generated @@ -0,0 +1 @@ +c466a823716a6f0e487b4a7847013fbd cdk-certbot-dns-route53-2.1.338.tar.gz |
