Skip to content

Commit

Permalink
Merge pull request #254 from glific/Create-an-account-in-Google-Cloud…
Browse files Browse the repository at this point in the history
…-Storage-GCS.md

Update 03. Create an account in Google Cloud Storage GCS.md
  • Loading branch information
PriyeshSikariwal authored Jan 23, 2025
2 parents b3f95b2 + 70a9a01 commit 28c32cc
Showing 1 changed file with 113 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,54 +1,96 @@
> ### **2 minute read                                                                                                                 `Intermediate`**
### **5 minute read                                                                                                                 `Intermediate`**

___

## Video Tutorial



<iframe width="560" height="315" src="https://youtu.be/YzdAWnOWqpw?si=awz7ANnzGV2j_P0b" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>



1. Go to [Google Cloud Console](https://console.cloud.google.com) and sign in with your Gsuite account.

![image](https://user-images.githubusercontent.com/32592458/212658353-8fed1d92-2e9d-4a9f-99c9-a359dc08698f.png)
<img width="584" alt="image" src="https://github.com/user-attachments/assets/49b51213-2cf0-4685-99c5-0c94d14f3a40" />


2. After signing in you will be redirected to the Google Cloud console. Use link if not redirected: [https://console.cloud.google.com/getting-started](https://console.cloud.google.com/getting-started)

3. Click on `TRY FOR FREE` and fill in Billing details.

![image](https://user-images.githubusercontent.com/32592458/212658391-1bd0d4ca-2b0d-452b-8433-844efda39820.png)

<img width="587" alt="Screenshot 2024-12-18 at 2 06 16 PM" src="https://github.com/user-attachments/assets/084408f7-70cb-415c-bab1-54b488e538da" />

4. Select `Country` and check to agree to terms and conditions.

![image](https://user-images.githubusercontent.com/32592458/212658410-f1ed8d3a-0155-48b2-af9f-6d32f564b450.png)
<img width="580" alt="Screenshot 2024-12-18 at 2 12 09 PM" src="https://github.com/user-attachments/assets/0c9949e4-0a84-48f4-874b-e06ce8915f9b" />

5. Now fill in your `primary contact` and `payment information details` and click on start free.


<img width="462" alt="image" src="https://github.com/user-attachments/assets/e56264d5-e862-4d56-9f4d-34237ac85d98" />

This whole process of account information and payment information verification will take a few minutes.

<img width="527" alt="image" src="https://github.com/user-attachments/assets/9f70f8fe-09fc-4bcf-820c-29c3c0604a8b" />


5. Now fill in the rest of the details to verify.
6. Answer the four questions asked by Google Cloud

![image](https://user-images.githubusercontent.com/32592458/212658435-487ebaa8-87fd-4223-9839-3b67f734c64d.png)
<img width="578" alt="image" src="https://github.com/user-attachments/assets/3966025f-bf25-49ae-94ea-d6a03007f3fc" />

6. On the same page, fill in `Primary contact details` and `payment method details`and click on the `start my free trial.`
- What best describes your organization and its needs?

![image](https://user-images.githubusercontent.com/32592458/212658459-8d951455-6974-43d7-ac41-c68417d11ef7.png)
<img width="566" alt="image" src="https://github.com/user-attachments/assets/86dd3f15-2e39-460f-a371-f49932d570d3" />

7. Now if it does not redirect you go to the google cloud console dashboard you can also use this link. [https://console.cloud.google.com/home](https://console.cloud.google.com/home)
- What brought you to Google Cloud?

8. Click `My Project` in the top bar to create a new project.
- What are you interested in doing with Google Cloud?

![image](https://user-images.githubusercontent.com/32592458/212658486-b65ab5bc-f270-4e71-b2fc-55a9e8ac010f.png)
- What best describes your role?

<img width="563" alt="image" src="https://github.com/user-attachments/assets/f7ea826a-d407-4fc8-b016-aa3d92e0dc69" />


9. Click on `New Project` at the top right corner.
7. Click `My Project` in the top bar to create a new project.


<img width="545" alt="image" src="https://github.com/user-attachments/assets/b80be6e4-5351-4a8c-ac21-ce9974b7e7fa" />

![image](https://user-images.githubusercontent.com/32592458/212658511-abbcf419-0d1e-406d-9bd6-b4f58c2b5379.png)

10. Fill in your project details and click on the `CREATE` button.
8. Click on `New Project` at the top right corner.


<img width="1468" alt="Screenshot 2024-12-18 at 2 22 14 PM" src="https://github.com/user-attachments/assets/63cee8e1-c171-478c-bb85-734e40542b04" />


10. Fill in your project details and click on the `CREATE` button. Once the new project is created, select it, and in the top search bar:

![image](https://user-images.githubusercontent.com/32592458/212659618-d639b26f-f998-4f78-97f5-09c25a2d210c.png)

11. Select `Cloud Storage` from the side panel of Google Cloud Console Dashboard

![image](https://user-images.githubusercontent.com/32592458/212659644-31270258-de4f-4457-812a-e9ca693318a3.png)
<img width="560" alt="image" src="https://github.com/user-attachments/assets/9576010a-f8dd-44e4-9be1-2d9bd23c8087" />





- Type `BigQuery API` and `enable` it if it’s not already enabled. If enabled, it will show as `Manage`.

<img width="589" alt="image" src="https://github.com/user-attachments/assets/2594643e-f006-405f-b2c8-a02ab7c2fad7" />

- Similarly, search for `Google Sheets API` and `enable` it if it’s not already enabled. If enabled, it will show as `Manage`.



11. Select `Cloud Storage`and the `Buckets` from the side panel of Google Cloud Console Dashboard


<img width="1462" alt="Screenshot 2024-12-18 at 2 24 31 PM" src="https://github.com/user-attachments/assets/5973b443-e108-448f-bbc2-6411189ee649" />

12. Click on `CREATE` button to create a bucket to store data

12. Click on `+CREATE` button to create a bucket to store data


![image](https://user-images.githubusercontent.com/32592458/212659921-587ddafc-1d15-4e8c-849c-3b087c987dec.png)
Expand All @@ -70,26 +112,71 @@ ___

1 . Once Bucket is created, Open the bucket and click on `Permissions`.

![image](https://user-images.githubusercontent.com/32592458/212660019-29e80d68-f442-4bd5-802b-ba235490c4c1.png)
<img width="1459" alt="image" src="https://github.com/user-attachments/assets/448a4ec6-175b-403b-a322-736468df9978" />


2 . Under the `View By Principle` section, click `Grant Access`.

2 . Click on the `ADD` button next to Permissions.

![image](https://user-images.githubusercontent.com/32592458/212660044-e3ed0eba-e776-486f-ac99-a10bcf10925d.png)

3 . Under the new members, tab choose `allUsers` **** and choose a role as Storage Admin.

![image](https://user-images.githubusercontent.com/32592458/212660068-c45ff88c-1ca3-4957-9f5e-bbf6afffc43c.png)
<img width="1204" alt="image" src="https://github.com/user-attachments/assets/246dc033-13c3-4b34-b794-017dd9f249a1" />

3 . Under `add principle`, tab choose `allUsers`and choose a role as `Storage Admin`.


![image](https://user-images.githubusercontent.com/32592458/212660108-74a4e900-2852-41fe-ae95-e8e2adaf81fc.png)



4 . Click on `save` open and a pop-up will come for confirmation of making the bucket publicly accessible.

5 . Click on `ALLOW PUBLIC ACCESS`

![image](https://user-images.githubusercontent.com/32592458/212660135-9f33ac04-1b9c-4415-90b3-766ee23df40c.png)

6. Select `IAM & Admin`and then `Service Accounts` from the side panel of Google Cloud Console Dashboard

<img width="478" alt="image" src="https://github.com/user-attachments/assets/a3b8cc7c-caa8-4737-8c9e-04a88bb3ae88" />

7. Click + Create Service Account, enter the details, and click Create and Continue.

<img width="765" alt="image" src="https://github.com/user-attachments/assets/d2db4ba3-2066-4128-a878-8749def079dd" />


8. Grant this service account access to the project, ensuring it has Owner access as well. Click Done.

<img width="765" alt="image" src="https://github.com/user-attachments/assets/b64b0d27-0cd4-4e38-9c4c-c1b4869b9e26" />

<img width="789" alt="image" src="https://github.com/user-attachments/assets/26e5a8ec-250a-4ea4-b74d-8eedfd98a383" />

9. Click on the three-dot dropdown next to the service account, then select Manage Keys.

<img width="744" alt="image" src="https://github.com/user-attachments/assets/783acd14-b35e-46c8-9adb-ebb3cee197f9" />

10. Click Add Key, select JSON as the key type, and click Create.

<img width="685" alt="image" src="https://github.com/user-attachments/assets/981bf5e8-025c-4f64-9c66-dbe9cdb29df1" />

<img width="529" alt="image" src="https://github.com/user-attachments/assets/6d190658-b130-45a0-a261-5d7e0dd74e3b" />

11. Save the downloaded JSON file and copy its content.

## Integrate Google Cloud Storage with Glific

1. Open the Glific account and click on the NGO main account button (bottom left corner), then go to Settings and
select Google Cloud Storage.
2. Enable the active box, paste the copied JSON file into the Goth Credentials field.

3. Copy the client email from the JSON file and paste it into Goth Credentials.

4. Enter the bucket name (you can find it in Google Cloud Console > Cloud Storage > Buckets).

## Integrate BigQuery API with Glific

1. Open BigQuery from the left panel in Glific.

2. Enable the active box and paste the copied JSON content into the Goth Credentials field. Click Save.

## Integrate Google Sheets API with Glific

1. Open Google Sheets from the left panel in Glific.

2. Enable the active box and paste the copied JSON content into the Goth Credentials field. Click Save.

0 comments on commit 28c32cc

Please sign in to comment.