Skip to content

Application for processing events from CloudFormation to create CNAME records in Route 53 for certificates issued by Amazon Certificate Manager (ACM) with DNS validation method.

License

Notifications You must be signed in to change notification settings

doxo/acm-dns-record-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACM DNS Record Manager

This application processes events from CloudFormation to create CNAME records in Route 53 for certificates issued by Amazon Certificate Manager (ACM) with DNS validation method.

Installation

Serverless Application Repository

The application is available in the AWS Serverless Application Repository and can be deployed directly from there. This is the easiest and most convenient way.

Manually

The application can be installed by running the following commands:

aws cloudformation package --template-file sam-template.yaml --s3-bucket $S3_BUCKET --output-template-file sam-template-output.yaml
aws cloudformation deploy --template-file sam-template-output.yaml --stack-name acm-dns-record-manager --capabilities CAPABILITY_IAM

Afterwards, you can get the ARN of the SNS topic from the outputs of the stack either from the console or by using this command:

aws cloudformation describe-stacks --stack-name acm-dns-record-manager --query "Stacks[0].Outputs[?OutputKey=='CloudFormationEventsTopicArn'].OutputValue" --output text

You refer to this SNS topic ARN when a new CloudFormation stack with a ACM Certificate resource is created for which the DNS validation records shoudl be added automatically.

How to use it

Tag your ACM certificates with the HostedZoneId to which the CNAME records for certificate validation should be added:

AWSTemplateFormatVersion: '2010-09-09'

Parameters:

  DomainName:
    Type: String
    Description: The domain name for which the certificate should be issued
  HostedZone:
    Type: AWS::Route53::HostedZone::Id
    Description: The Route 53 Hosted Zone to which the CNAME records for DNS validation of ACM certificates should be added

Resources:

  Certificate:
    Type: AWS::CertificateManager::Certificate
    Properties:
      DomainName:
        Ref: DomainName
      ValidationMethod: DNS
      Tags:
        - Key: HostedZoneId
          Value:
            Ref: HostedZone

About

Application for processing events from CloudFormation to create CNAME records in Route 53 for certificates issued by Amazon Certificate Manager (ACM) with DNS validation method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%