-
Prepare Service Account and download JSON key credentials in GCP.
https://cloud.google.com/iam/docs/creating-managing-service-accounts
-
Initialize terraform
terraform init
-
Create a
terraform.tfvars
file inside the terraform/gcloud folder It needs to contain the following as a minimum:name_prefix = "example-vhot-qgs" dt_cluster_url = "https://{id}.managed-sprint.dynalabs.io" dt_cluster_api_token = "{your_cluser_api_token}" gcloud_project = "myGCPProject" # GCP Project you want to use gcloud_zone = "us-central1-a" # GCP zone name gcloud_cred_file = "/location/to/sakey.json" # location of the Service Account JSON created earlier users = { 0 = { email = "user1@example.com" firstName = "John" lastName = "Smith" } 1 = { email = "user2@example.com" firstName = "James" lastName = "Miner" } }
Check out
variables.tf
for a complete list of variables -
Verify the configuration by running
terraform plan
terraform plan
-
Apply the configuration
terraform apply
-
All resouces can be destroyed with this command:
terraform apply -var="environment_state=DISABLED" -target=dynatrace_environment.vhot_env -auto-approve && terraform destroy
-
Notifications
You must be signed in to change notification settings - Fork 0
dynatrace-ace/perform2021-vhot-qualitygates
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published