Terraform configuration examples for standing up demo environments. This should not be used to stand up real, production environments.
- modules/a2_with_clients : Used to create an all-in-one Chef Automate (plus Chef Infra Server & Habitat Builder) server along with clients which are bootstrapped to the server on AWS. Also creates associated security groups which will be needed for the instances.
- Perform work from the
a2_with_clients
top-level directory. - Copy
main.tf.example
to bemain.tf
and update all values. - run
terraform init
- verify that
aws
cli is installed and you are properly authenticated. - Populate values in created
main.tf
which was copied frommain.tf.example
. - Execute
terraform plan
to confirm there are no errors. - Execute
terraform apply
to build the infrastructure. This will create with module source of modules/a2_with_clients. Once completed, it will also create a local.chef
directory at the current location, allowing forknife
access to the Chef Infra Server instance. Total creation time is ~10 minutes. - Execute
terraform destroy
when completed to clean-up any resources created.