# GCP Secret Manager Setup

1. Login to your Google Cloud Platform.
2. Go to the GCP Console home page - <https://console.cloud.google.com/>. Save the Project number for future usage.
3. Click on 'Go to project settings'.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FBkw84wMALRMAF6sXDHGc%2F3.png?alt=media&#x26;token=9745128c-b548-4b44-b1d5-ca3a8a256edd" alt=""><figcaption></figcaption></figure>

1. Click on the 'Service Accounts' menu on the left navigation bar.
2. Click on 'Create Service Account'.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FmXhQ21m2lLZeQCqvaj6G%2F5.png?alt=media&#x26;token=5f8e0a5d-6375-4155-81ca-125ac48eeaf6" alt=""><figcaption></figcaption></figure>

6. Enter the service account name and description details. Save the Service account ID for future usage.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FNBTf47cRsQGkkrknvBOP%2F6.png?alt=media&#x26;token=0dc72132-2db4-4276-9f66-bec406b1f702" alt=""><figcaption></figcaption></figure>

7. Grant the service account access to the project and create the account.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FpLcAUWctzfRvb5wmhEpd%2F7.png?alt=media&#x26;token=d4285dcf-8576-49c7-ae16-0b30c1223384" alt=""><figcaption></figcaption></figure>

8. Select the newly created service account and click on the 'KEYS' tab.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2Fq0THms8hLZltbKqfEYHU%2F8.png?alt=media&#x26;token=55c38ad4-3535-4fd4-8fff-0e86753cd9c7" alt=""><figcaption></figcaption></figure>

9. Click the 'ADD KEY' dropdown, select 'Create New Key' and select JSON as the key type.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FKk9WXbOybsZ1v048S0z8%2F9.png?alt=media&#x26;token=b88b81af-d523-445a-85f4-d2ec1fbf6e9c" alt=""><figcaption></figcaption></figure>

10. The service account key JSON file is automatically downloaded to your local machine.
