Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <organization id> -p <project id> [-b <billing account id>] [-f <folder id>] [-n <service account name>]
Expand Down
14 changes: 14 additions & 0 deletions docs/GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="<YOUR_FOLDER_ID>"
export BILLING_ACCOUNT_ID="<YOUR_BILLING_ACCOUNT_ID>"
export SEED_PROJECT_ID="<YOUR_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**.
Expand Down