@ixor/aws-cdk-ixor-r53

1.2.0-rc-6 • 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

62

Version

1.2.0-rc-6

License

MIT

Unpacked Size

15.9 kB

Total Files

12

Last publish

Collaborators

  • niels-ixor
  • sysadmin_at_ixor_dot_be
  • ddewaele
  • ixorci
  • jancaals
  • jefceuppens
  • jvanhent