Socket
Socket
Sign inDemoInstall

route53-recordset-converter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

route53-recordset-converter

Converts an input CSV file from route53-transfer to a JSON file which can be then used in a Terraform google_dns_record_set


Maintainers
1

Route53 recordset converter

This software is aimed to convert the input CSV file from route53-transfer to a JSON file which can be then used in a Terraform google_dns_record_set

Requirements

  • Python 3.7.9 or higher

Installation

pip install route53-recordset-converter

Usage

route53-transfer dump example.com example.com.csv
  • Convert the CSV file to a JSON one
route53-recordset-converter example.com.csv example.com.json
  • Use the JSON in Terraform
locals {
    dns_records = jsondecode(file("example.com.json"))
}

resource "google_dns_record_set" "dns_records" {
    for_each     = { for index, dns_record in local.dns_records : index => dns_record }
    name         = each.value.name
    managed_zone = "dns-zone-name"
    type         = each.value.type
    ttl          = each.value.ttl
    rrdatas      = each.value.value
}

CSV Formats

The following CSV formats are supported:

  • aws: AWS Route 53 standard format, as outputted by route53-transfer
  • register.it: Register.it format, as exported by www.register.it

In Python

You can convert the CSV without dumping them to a JSON.

from route53_recordset_converter import Route53RecordsetConverter

c = Route53RecordsetConverter()

converted_results = c.convert("example.com.csv")

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc