This repository contains a simple script that fetches DNS zone data from OVHcloud
and converts it to a .tf
file understood by the official Terraform OVH provider.
Additionally, a shell script with terraform import
commands is generated.
This way it is possible to pull the existing infrastructure state.
NOTE: the script doesn't work on Python 3.10 due to a bug in python-ovh.
In order to generate the files run python3 import.py <secrets.tf file path> example.com example_com.tf example_com.sh
.