diff --git a/README.md b/README.md index 058fd1c3..ce89e459 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ following roles: A [helper script](./helpers/setup-sa.sh) is included to create the Seed Service Account in the [Seed Project](https://github.com/terraform-google-modules/terraform-google-project-factory/blob/master/docs/GLOSSARY.md#seed-project), grant the necessary roles to the [Seed Service Account](https://github.com/terraform-google-modules/terraform-google-project-factory/blob/master/docs/GLOSSARY.md#seed-service-account), -and enable the necessary API's in the Seed Project. Run it as follows: +and enable the necessary APIs in your existing Seed Project. Run it as follows: ```sh ./helpers/setup-sa.sh -o -p [-b ] [-f ] [-n ] diff --git a/docs/GLOSSARY.md b/docs/GLOSSARY.md index 70c597e1..a0b9a000 100644 --- a/docs/GLOSSARY.md +++ b/docs/GLOSSARY.md @@ -8,6 +8,20 @@ specific meaning within the domain of knowledge. An existing GCP project with resources, services, and service accounts needed to create projects with the project factory. +For a minimal working example of a seed project, create a project using the following command in the [Cloud Console](https://console.cloud.google.com/) or the [gcloud CLI](https://cloud.google.com/sdk/gcloud): +```bash +export FOLDER_ID="" +export BILLING_ACCOUNT_ID="" +export SEED_PROJECT_ID="" + +gcloud projects create "$SEED_PROJECT_ID" \ + --name="$SEED_PROJECT_ID" \ + --folder="$FOLDER_ID" + +gcloud billing projects link "$SEED_PROJECT_ID" \ + --billing-account="$BILLING_ACCOUNT_ID" +``` + ## Seed Service Account A service account in the **Seed Project** used to create **Target Projects**.