https://github.com/jackdbd/cloud-tasks-devfest-milano-2023-project
https://github.com/jackdbd/cloud-tasks-devfest-milano-2023-project
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackdbd/cloud-tasks-devfest-milano-2023-project
- Owner: jackdbd
- Created: 2023-11-18T22:47:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T22:49:33.000Z (over 2 years ago)
- Last Synced: 2025-01-17T21:29:29.494Z (over 1 year ago)
- Language: TypeScript
- Size: 405 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DevFest Milano 2023
## Pre-requisites
Enable the necessary Google Cloud services either using the web console, gcloud, or the Service Usage API. See [here](https://cloud.google.com/service-usage/docs/enable-disable) for details.
- Artifact Registry API
- Cloud Build API
- Cloud Functions API
- Cloud Run API
- Cloud Tasks API
```sh
gcloud services enable artifactregistry.googleapis.com
gcloud services enable cloudbuild.googleapis.com
gcloud services enable cloudfunctions.googleapis.com
gcloud services enable run.googleapis.com
gcloud services enable cloudtasks.googleapis.com
```
You can use this command to check that all the necessary Google Cloud APIs are enabled.
```sh
gcloud services list --enabled
```
Retrieve the current IAM policy for the GCP project:
```sh
gcloud projects get-iam-policy $GCP_PROJECT_ID
```
```sh
gcloud projects add-iam-policy-binding $GCP_PROJECT_ID \
--member="serviceAccount:${SA_ENQUEUER_EMAIL}" \
--role='roles/cloudtasks.enqueuer'
```
```sh
gcloud projects add-iam-policy-binding $GCP_PROJECT_ID \
--member="serviceAccount:${SA_API_EMAIL}" \
--role='roles/datastore.user'
```