Closed brikis98 closed 3 months ago
Re-opening https://github.com/gruntwork-io/boilerplate/pull/122. Added some new tweaks. Please see this Slack thread for more context.
In one terminal tab:
cd boilerplate/html
npm install
npm start
Create a symlink from some repo with Gruntwork modules (e.g., our Service Catalog) to the examples/for-learning-and-testing/app/modules folder:
examples/for-learning-and-testing/app/modules
cd boilerplate ln -s ~/src/terraform-aws-service-catalog/modules examples/for-learning-and-testing/app/modules
This gives us some real Terraform modules with which to test the "auto scaffolding" feature.
This is the recommended example to use now, as it gives you a web UI that lets you click around to see all the other examples:
go run . --template-url examples/for-learning-and-testing/app --output-folder /tmp/app
VPC example (YAML-driven):
go run . --template-url examples/for-learning-and-testing/app/scaffolds/vpc-yml --output-folder /tmp/vpc
Account setup example (Markdown-driven):
go run . --template-url examples/for-learning-and-testing/app/scaffolds/aws-multi-account --output-folder /tmp/aws-multi-account
Repo setup example (Markdown-driven):
go run . --template-url examples/for-learning-and-testing/app/scaffolds/app-repo-structure --output-folder /tmp/app-repo-structure
Any Terraform module (Terraform-driven):
go run --template-url <ANY FOLDER WITH A SINGLE TF MODULE> --output-folder /tmp/tf-module
Any Terraform module catalog (gives you catalog list view):
go run --template-url <ANY FOLDER WITH MULTIPLE TF MODULE SUBFOLDERS> --output-folder /tmp/tf-catalog
Read the Gruntwork contribution guidelines.
Added / Removed / Updated [X].
Description
Re-opening https://github.com/gruntwork-io/boilerplate/pull/122. Added some new tweaks. Please see this Slack thread for more context.
One time setup
In one terminal tab:
cd boilerplate/html
npm install
npm start
Create a symlink from some repo with Gruntwork modules (e.g., our Service Catalog) to the
examples/for-learning-and-testing/app/modules
folder:This gives us some real Terraform modules with which to test the "auto scaffolding" feature.
Run the gruntwork-as-an-app example (recommended)
This is the recommended example to use now, as it gives you a web UI that lets you click around to see all the other examples:
Running other examples
VPC example (YAML-driven):
Account setup example (Markdown-driven):
Repo setup example (Markdown-driven):
Any Terraform module (Terraform-driven):
Any Terraform module catalog (gives you catalog list view):
TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added / Removed / Updated [X].
Migration Guide