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_clientstop-level directory. - Copy
main.tf.exampleto bemain.tfand update all values. - run
terraform init
- verify that
awscli is installed and you are properly authenticated. - Populate values in created
main.tfwhich was copied frommain.tf.example. - Execute
terraform planto confirm there are no errors. - Execute
terraform applyto build the infrastructure. This will create with module source of modules/a2_with_clients. Once completed, it will also create a local.chefdirectory at the current location, allowing forknifeaccess to the Chef Infra Server instance. Total creation time is ~10 minutes. - Execute
terraform destroywhen completed to clean-up any resources created.