Skip to content

dynatrace-ace/perform2021-vhot-qualitygates

Repository files navigation

perform2021-quality-gates

Provision infrastructure

  1. Prepare Service Account and download JSON key credentials in GCP.

    https://cloud.google.com/iam/docs/creating-managing-service-accounts
  2. Initialize terraform

    terraform init
  3. 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

  4. Verify the configuration by running terraform plan

    terraform plan
  5. Apply the configuration

    terraform apply
  6. All resouces can be destroyed with this command:

    terraform apply -var="environment_state=DISABLED" -target=dynatrace_environment.vhot_env -auto-approve && terraform destroy

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published