Created by Joesph Gadd!! (

Excel to Terraform Converter

This script will convert excel spreadsheets containing variables in the format of the examples included in this repository into Terraform HCL formatted configuration files. Included as an example is the foundations.xlsx spreedsheet you can use as input for the demo. This would be information gathered from the customer by the consultant.
Included as an example of the output is the file.

The script takes colours from the spreadsheet to denote how the output should be formatted, see comments in for more info.

To run the script:

  1. Install python 3
  2. Install the openpyxl module – ‘pip install openpyxl’
  3. Run ‘python3 .xlsx’ (or ‘python .\ .py’ on windows.



View Github