@icalialabs/aws-configure-route53-records

0.0.1 • Public • Published

AWS Configure Route53 Records

Configures DNS records in a given AWS Route 53 domain

Usage

      - name: Configure AWS Route53 Records
        uses: icalia-actions/aws-configure-route53-records@v0.0.1
        with:
          hosted-zone-id: ROUTE53_HOSTED_ZONE_ID
          records: |
            [
              {
                "Name": "record-name.your-domain.tld.",
                "Type": "A",
                "AliasTarget": {
                  "HostedZoneId": "TARGET_HOSTED_ZONE_ID",
                  "DNSName": "dualstack.my-load-balancer.my-region.elb.amazonaws.com.",
                  "EvaluateTargetHealth": true
                }
              }
            ]
          comment: An optional comment that describes the purpose of these changes

Using record template files:

You can also use an additional json or yaml file like this:

# tmp/example.yml
- Name: subdomain1.my-domain.tld.
  Type: A
  AliasTarget: &target
    HostedZoneId: TARGET_HOSTED_ZONE_ID
    DNSName: dualstack.my-load-balancer.my-region.elb.amazonaws.com.
    EvaluateTargetHealth: true

- Name: subdomain2.my-domain.tld.
  Type: A
  AliasTarget:
    <<: *target
      - name: Configure AWS Route53 Records
        uses: icalia-actions/aws-configure-route53-records@v0.0.1
        with:
          hosted-zone-id: ROUTE53_HOSTED_ZONE_ID
          records: tmp/example.yml
          comment: An optional comment that describes the purpose of these changes

Package Sidebar

Install

npm i @icalialabs/aws-configure-route53-records

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

918 kB

Total Files

14

Last publish

Collaborators

  • senyix
  • alanmm
  • vovimayhem