This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use this file, you need to install Terraform. How to do that can be found here: https://learn.hashicorp.com/tutorials/terraform/install-cli. | |
# To use this file, put it in a directory and name the file main.tf. This will tell Terraform to use this file. | |
# Then create a subdirectory called key. | |
# Get a service account key from your GCP project. To do this, go into your GCP project. Then go to IAM -> Service Accounts -> Compute Engine Standard Service Account -> Key -> Add Key -> Create New Key -> JSON. | |
# The key will now be downloaded to your computer. | |
# Load a service account key from your GCP project into the key directory and rename the service account key to GCPkey.json. | |
# Then replace all values that are in this format: <<< value >>>. | |
# Now start a shell and go to the directory where this file is located as main.tf. | |
# Run the command "terraform init" there. Terraform will now load everything to use its providers. | |
# After Terraform has been initialized, run the "terraform apply" command. |