Add information about the relation between the two first steps

This commit is contained in:
Yoram Ben-Yaacov 2021-06-15 16:46:21 +03:00
parent 39b4fb4cf9
commit d14d3475d5
2 changed files with 10 additions and 1 deletions

View File

@ -28,6 +28,7 @@ parent = "folders/12345678"
```
- make sure you have the right authentication setup (application default credentials, or a service account key)
- **The output of this stage contains the values for the resources phase**
- run `terraform init` and `terraform apply`
Once done testing, you can clean up resources by running `terraform destroy`.

View File

@ -22,7 +22,9 @@ The resources that will be create in each project are:
## Running the example
To create the resources, you can leverage the service account created in the previous step:
In the previous step, we created the environment (projects and service account) which we are going to use in this step.
To create the resources, copy the output of the environment step (**project_ids**) and paste it into the `terraform.tvars`:
- Specify your variables in a `terraform.tvars`
@ -36,6 +38,12 @@ project_ids = {
}
```
- Get a key for the newly created service account:
- Go into services project
- Go into IAM page
- Go into the service account section
- Creaet a new key for the service account created in previeous step (**service_account**)
- Download the json key into the current folder
- make sure you have the right authentication setup (application default credentials, or a service account key)
- run `terraform init` and `terraform apply`