Infrarapid is a tool to generate terraform templates for your infrastructure
- Install the package
pip install infrarapid
- Clone the repo:
git clone https://github.com/infracodeteam/infrarapid.git
cd infrarapid
- Create a configuration file, you can find examples in
examples
folder - Let's use
aws-lite.yaml
file from examples: - Run the script
./ic --config examples/aws-lite.yaml --templates-path results/
or if installed with Pip:
ic --config examples/aws-lite.yaml --templates-path results/
where results
is path to folder to save Terraform templates into.
Then enter results
directory and review your plan:
cd results/
terraform init
terraform plan
If everything is ok, run terraform apply
to apply the configuration.
terraform apply