-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch 5.4.1 - Cloud Build service account update
- Loading branch information
Showing
5 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,20 +196,41 @@ These permissions may vary depending on the setup of the project. Consider the f | |
|
||
### Configure the Cloud Build account | ||
|
||
In the source project, navigate to the [Cloud Build](https://console.cloud.google.com/cloud-build/settings/service-account) and locate the account that will execute the deployment process. | ||
You need to grant the Cloud Build service account permissions to deploy Cortex. | ||
|
||
![cloud build service account](images/5.png "image_tooltip") | ||
Cloud Build uses a service account to execute builds on your behalf. [Cloud Build service account](https://cloud.google.com/build/docs/cloud-build-service-account) describes how Cloud Build uses the default service account. | ||
|
||
Locate the build account in [IAM](https://pantheon.corp.google.com/iam-admin/iam) (make sure it says _cloudbuild_): | ||
To grant the required permissions, perform the following steps: | ||
|
||
![Cloud build service account in IAM](images/6.png "image_tooltip") | ||
1. Find the default Cloud Build service account by opening [Cloud Shell](https://shell.cloud.google.com/?show=terminal) and executing the following gcloud command: | ||
```bash | ||
gcloud builds get-default-service-account --project <execution project id> | ||
``` | ||
|
||
2. You should see a response formatted as either: | ||
|
||
`serviceAccountEmail: projects/<project number>/serviceAccounts/<project number>[email protected]` | ||
|
||
or | ||
|
||
`serviceAccountEmail: projects/<project number>/serviceAccounts/<project number>@cloudbuild.gserviceaccount.com` | ||
|
||
Note the last part, `<project number>[email protected]` or `<project number>@cloudbuild.gserviceaccount.com`, This is your default Cloud Build service account. | ||
|
||
|
||
3. Locate this service account in [IAM](https://console.cloud.google.com/iam-admin/iam): | ||
![Cloud build service account in IAM](images/6.png "Cloud Build service account") | ||
|
||
or | ||
|
||
![Cloud build compute service account in IAM](images/cloudbuild_compute_sa.png "Cloud Build Compute service account") | ||
|
||
Grant the following permissions to the Cloud Build service account in both the source and target projects if they are different: | ||
4. Grant the following permissions to the Cloud Build service account in the source project (and the target project if deploying to a separate target): | ||
|
||
- BigQuery Data Editor | ||
- BigQuery Job User | ||
- BigQuery Data Editor | ||
- BigQuery Job User | ||
|
||
\[Optional\] If changing the default values for Data Mesh in `config/config.json` to implement features beyond descriptions, the executing account (Cloud Build service account) will need to have the following permissions: | ||
\[Optional\] If changing the default values for Data Mesh in `config/config.json` to implement features beyond descriptions, the executing account (Cloud Build service account) will need to have the following additional permissions: | ||
- Policy Tag Admin | ||
- Data Catalog TagTemplate Owner | ||
- Dataplex Editor | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
## June 2024 - Release 5.4.2 | ||
The Cloud Build default service account behavior has changed and will now default to one of two types of service accounts: | ||
* The legacy Cloud Build service account `<project number>@cloudbuild.gserviceaccount.com`. | ||
* The project's compute service account `<project number>[email protected]`. | ||
|
||
This release updates the [Quick demo deployment](README.md#quick-demo-deployment) to use either default account. | ||
|
||
The guidance in [Configure the Cloud Build account](README.md#configure-the-cloud-build-account) has also been updated with the latest instructions to determine your Cloud Build default account. | ||
|
||
Additional details about the Cloud Build change can be found at [Cloud Build Service Account Change](https://cloud.google.com/build/docs/cloud-build-service-account-updates). | ||
|
||
## May 2024 - Release 5.4.1 | ||
### Marketing | ||
* Table schema directory location re-aligned for Google Ads, CM360 and TikTok: moved from `src/marketing/src/SOURCE/src/table_schema` to `src/marketing/src/SOURCE/config/table_schema` matching other Marketing sources. | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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