Please follow
these instructions
to install Terraform binary on your machine.
Setting up a Google Cloud Project
- Create a new project in Google Cloud Platform console
(link).
- Enable billing for the project
(link).
- Enable Compute Engine and Cloud SQL APIs
(link).
- Install Google Cloud SDK (link).
- Obtain Google Cloud credentials by running the following:
bash gcloud auth application-default login
Your credentials will be saved to a file
~/.config/gcloud/application_default_credentials.json
. It will be used by
terraform.
cd
to terraform directory
- Run the following to initialize Terraform:
bash terraform init
- Then run the following to start installation:
bash terraform apply -var "project_name=*your_project_name*"
By default 1 fleetspeak server and 1 client will be started. You can specify
these numbers with terraform variables: bash terraform apply -var "project_name=*your_project_name*" -var "num_servers=2" -var "num_clients=3"
If you run the installation in the internal Google Cloud, the default image of
virtual machines may be not allowed. In this case run terraform apply
with the
additional variable as following: bash terraform apply -var "project_name=*your_project_name*" -var "vm_image=projects/eip-images/global/images/ubuntu-1804-lts-drawfork-v20200208"
Viewing tests results
After all the tests are completed, the results.txt
file will be uploaded into
the bucket created by Terraform
(link).
Destroying resources
When tests are finished, destroy all the resources by running bash terraform destroy -var "project_name=*your_project_name*"