https://github.com/wolfeidau/serverless-acm-approver
This serverless application provides an acm approver function.
https://github.com/wolfeidau/serverless-acm-approver
acm aws golang lambda serverless-application-repository
Last synced: 6 months ago
JSON representation
This serverless application provides an acm approver function.
- Host: GitHub
- URL: https://github.com/wolfeidau/serverless-acm-approver
- Owner: wolfeidau
- License: apache-2.0
- Created: 2020-02-24T21:55:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T23:53:29.000Z (over 5 years ago)
- Last Synced: 2025-04-01T01:19:13.190Z (7 months ago)
- Topics: acm, aws, golang, lambda, serverless-application-repository
- Language: Go
- Homepage: https://github.com/wolfeidau/serverless-acm-approver
- Size: 96.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serverless-acm-approver
This serverless application provides an acm approver function which uses route53 to aid in the automated creation of an acm certificate.
[](https://github.com/wolfeidau/serverless-acm-approver/actions?query=workflow%3AGo)
[](https://goreportcard.com/report/github.com/wolfeidau/serverless-acm-approver)
[](https://godoc.org/github.com/wolfeidau/serverless-acm-approver)
# Why?
The approvers I have used in the past were either limited to creation only, or rather limited in their monitoring / reporting of errors.
This is heavily inspired by the acm [approver lambda](https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/lib/index.js) which is packaged with [AWS CDK](https://github.com/aws/aws-cdk).
Also lots of ideas came from [b-b3rn4rd/acm-approver-lambda](https://github.com/b-b3rn4rd/acm-approver-lambda).
# Usage
The following template illustrates how to use this [serverless application](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:170889777468:applications~serverless-acm-approver).
```yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: >-
This template demonstrates how to use the serverless-acm-approver application.
Parameters:
DomainName:
Type: String
HostedZoneId:
Type: String
SubjectAlternativeNames:
Type: CommaDelimitedList
Resources:
ServerlessACMApprover:
Type: 'AWS::Serverless::Application'
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:170889777468:applications/serverless-acm-approver
SemanticVersion: 1.2.1
Parameters:
# DomainName (FQDN) is limited to 64 characters in total
DomainName: !Ref DomainName
HostedZoneId: !Ref HostedZoneId
# Each Subject Alternative Names (SAN) can be up to 253 characters long
SubjectAlternativeNames:
!Join
- ","
- Ref: SubjectAlternativeNames
# Optional region to enable creation of ACM certificates in us-east-1 for cloudfront...
# Region: us-east-1
Outputs:
CertificateArn:
Description: "Certificate ARN"
Value: !GetAtt ServerlessACMApprover.Outputs.CertificateArn
```
# License
This application is released under Apache 2.0 license and is copyright Mark Wolfe.