@ixor/aws-cdk-ixor-r53

1.1.0 • Public • Published

aws-cdk-ixor-r53 module

Construct library to add Route53 Resource Records to a Hosted Zone

Introduction

This will only work with the Route53 setup and Custom CloudFormation resource at Ixor.

How to use

import {R53} from "@ixor/aws-cdk-ixor-r53";
import {Stack, Construct, StackProps} from "aws-cdk-lib";
import {Construct} from "contstructs";

export class MyStack extends Stack {

    constructor(scope: Construct, id: string, props?: StackProps) {
        super(scope, id, props);

        new R53(
            this, `r53_${this.node.id}`,
            {
                topicArn: this.node.tryGetContext("r53TopicArn"),
                RecordType: "CNAME",
                Source: "aLoadBalancerDnsName",
                Target: "www.my.domain"
            })
    }
}        

Test

A test stack is added in lib/test-aws-cdk-ixor-r53-stack. The stack uses the R53 construct to create a CNAME of ellen.ixor-tst.be. When you deploy to sandbox, you should be able to run dig ellen.ixor-tst.be and receive a NOERROR status.

Readme

Keywords

Package Sidebar

Install

npm i @ixor/aws-cdk-ixor-r53

Weekly Downloads

16

Version

1.1.0

License

MIT

Unpacked Size

15.9 kB

Total Files

12

Last publish

Collaborators

  • ddewaele
  • ixorci
  • jancaals
  • rtytgat
  • wvanlaer
  • jefceuppens
  • kato_duwee
  • jvanhent