RSSAmplifier

Techwolf12 Home on Techwolf12 · Mar 15, 2022

Using Python to migrate DigitalOcean domains to Terraform managed

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I was thinking about migrating some cloud services into Terraform, but we seemed to have too many domains. So I wrote a small python script that takes a domain, then using doctl (the DigitalOcean command line) it extracts all current records. After that it outputs the file into tf and also gives a import command to import the current state in Terraform state.

Read on techwolf12.nl

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.