|
| 1 | +## Google Cloud Platform setup |
| 2 | + |
| 3 | +[GCP](https://cloud.google.com/) is a cloud solution that you are going to use in order to deploy your Machine Learning-based products to production. |
| 4 | + |
| 5 | +🚨 If you are a student of the **Part-Time Bootcamp**, SKIP THIS SECTION FOR NOW! **GCP** offers $300 worth of free credits for a duration of 3 months. You do not want to activate your GCP account too soon 🙅♂️ |
| 6 | + |
| 7 | +### Project setup |
| 8 | + |
| 9 | +- Go to [Google Cloud](https://console.cloud.google.com/) and create an account if you do not already have one |
| 10 | +- In the Cloud Console, on the project list, select or create a Cloud project |
| 11 | + |
| 12 | +⚠️ **Important:** When creating a new project, you will see an **Organization** field. Leave this set to **"No organization"**. Do not select or create an organization. Choosing an organization applies restrictions that can prevent you from using GCP services during the bootcamp. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +- Give it a name such as `Wagon Bootcamp` for example |
| 17 | +- Notice the `ID` automatically created for the project, e.g. `wagon-bootcamp-123456` |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +ℹ️ Note the **Project ID** (e.g. `wagon-bootcamp-123456`) this is **not** the same as the project name you chose (e.g. `Wagon Bootcamp`). You will need the ID later when running terminal commands, but don't worry, you can always find it in GCP. |
| 22 | + |
| 23 | +### Account language |
| 24 | + |
| 25 | +In order to facilitate the following of the instructions during the bootcamp, open your GCP account preferences: |
| 26 | + |
| 27 | +[https://myaccount.google.com/language](https://myaccount.google.com/language) |
| 28 | + |
| 29 | +If the *preferred language* is not: |
| 30 | + |
| 31 | +- **English** |
| 32 | +- **United States** |
| 33 | + |
| 34 | +Then switch the language to english: |
| 35 | + |
| 36 | +- Click on the edit pen logo |
| 37 | +- Select **English** |
| 38 | +- Select **United States** |
| 39 | +- Click on **Select** |
| 40 | + |
| 41 | +### Billing account |
| 42 | + |
| 43 | +You will now link your account to your credit card. This step is required or you will not be able to use the services provided by GCP. Do not worry, you will be able to consume most GCP services through free credits throughout the bootcamp. |
| 44 | + |
| 45 | +⚠️ In some cases, Google may charge your card (around €10) to verify that it is valid. This will unfortunately not be refunded once you are approved, but will be added as credit in GCP that you can use once your free credits have been used or expired. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +- Click on **Billing** |
| 50 | +- Click on **MANAGE BILLING ACCOUNTS** |
| 51 | +- Click on **ADD BILLING ACCOUNT** |
| 52 | +- Give a name to your billing account, e.g. `My Billing Account` |
| 53 | +- Click on "I have read..." and agree the to the terms of service |
| 54 | +- Click on **CONTINUE** |
| 55 | +- Select your account type: `Individual` |
| 56 | +- Fill your name and address |
| 57 | + |
| 58 | +You should see that you have a free credit of "$300 credits over the next 90days". |
| 59 | + |
| 60 | +- Click on card details |
| 61 | +- Enter your credit card info |
| 62 | +- Click on **START MY FREE TRIAL** |
| 63 | + |
| 64 | +Once this is done, verify that your billing account is linked to your GCP project. |
| 65 | + |
| 66 | +- Select your project |
| 67 | +- Go to **Billing** |
| 68 | +- Select **LINK A BILLING ACCOUNT** |
| 69 | +- Select `My Billing Account` |
| 70 | +- Click on **SET ACCOUNT** |
| 71 | + |
| 72 | +You should now see: |
| 73 | + |
| 74 | +```bash |
| 75 | +Free trial status: $300 credit and 91 days remaining - with a full account, you'll get unlimited access to all of Google Cloud Platform. |
| 76 | +``` |
| 77 | +
|
| 78 | +<details> |
| 79 | + <summary>👉 If you do not own a credit card 👈</summary> |
| 80 | +
|
| 81 | +If you do not own a credit card, an alternative is to setup a **Revolut** account. |
| 82 | +Revolut is a financial app that will allow you to create a virtual credit card linked to your mobile phone billing account. |
| 83 | +
|
| 84 | +Skip this step if you own a credit card and use your credit card for the setup. |
| 85 | +
|
| 86 | +Download the Revolut app, or go to [revolut](https://www.revolut.com/a-radically-better-account) and follow the steps to download the app (enter your mobile phone number and click on Get Started). |
| 87 | +
|
| 88 | +- Open the Revolut app |
| 89 | +- Enter your mobile phone number |
| 90 | +- Enter the verification code received by SMS |
| 91 | +- The app will ask for your country, address, first and last name, date of birth, email address |
| 92 | +- The app will also ask for a selfie and request your profession |
| 93 | +- The app will require a photo of your identification card or passport |
| 94 | +
|
| 95 | +Once this is done, select the standard (free) plan. No need to add the card to Apple pay, or ask for a the delivery of a physical card, or add money securely. |
| 96 | +
|
| 97 | +You now have a virtual card which we will use for the GCP setup. |
| 98 | +
|
| 99 | +In the main view of the Revolut app |
| 100 | +
|
| 101 | +- Click on Ready to use |
| 102 | +- Click on the card |
| 103 | +- Click on Show card details |
| 104 | +- Note down the references of the virtual credit card and use them in order to proceed with the GCP setup |
| 105 | +
|
| 106 | +</details> |
| 107 | +
|
| 108 | +<details> |
| 109 | + <summary>👉 If you receive an email from Google saying "Urgent: your billing account XXXXXX-XXXXXX-XXXXXX has been suspended" 👈</summary> |
| 110 | +
|
| 111 | +This may happen especially in case you just setup a Revolut account. |
| 112 | +
|
| 113 | +- Click on PROCEED TO VERIFICATION |
| 114 | +- You will be asked to send a picture of your credit card (only the last 4 digits, no other info) |
| 115 | +- In case you used **Revolut**, you can send a screenshot of your virtual credit card (do not forget to remove the validity date from the screenshot) |
| 116 | +- Explain that you are attending the Le Wagon bootcamp, do not own a credit card, and have just created a Revolut account in order to setup GCP for the bootcamp using a virtual credit card |
| 117 | +
|
| 118 | +You may receive a validation or requests for more information within 30 minutes. |
| 119 | +
|
| 120 | +Once the verification goes through, you should receive an email stating that "Your Google Cloud Platform billing account XXXXXX-XXXXXX-XXXXXX has been fully reinstated and is ready to use.". |
| 121 | +
|
| 122 | +</details> |
| 123 | +
|
| 124 | +### Enabling GCP services |
| 125 | +
|
| 126 | +- Make sure that billing is enabled for your Google Cloud project |
| 127 | +
|
| 128 | +ℹ️ You have a **$300 credit** to use for Google Cloud resources, which will be more than enough for the bootcamp. |
| 129 | +
|
| 130 | +- [Enable the BigQuery and Compute Engine APIs](https://console.cloud.google.com/flows/enableapi?apiid=bigquery,compute) (This step may take a few minutes) |
| 131 | +
|
| 132 | +That's it for the browser setup! Terminal setup comes later in this guide. |
0 commit comments