Creating Access for Temperstack in GCP
Following are the steps to access GCP credentials to Integrate with Temperstack
Last updated
Following are the steps to access GCP credentials to Integrate with Temperstack
Last updated
Create a new project under your organization(say temperstack-integration
)
Ensure that a billing account is added to this project. Link to Billing Page.
Enable Cloud Monitoring API on temperstack-integration
project
Run the command below in Cloud Shell to set the project to temperstack-integration
(newly created project)
Run the command below in Cloud Shell enable cloud API need by temperstack
Open Cloud Shell on the GCP Console and create a YAML file.
Note: Ensure the shell is not attached to any project, as the role must be created at the organization level. Use the command below to unset the project.
Create a YAML file called temperstack.yaml
Paste the contents below into that file
Get YOUR_ORG_ID
(used in the next step), by running the following command on Cloud Shell
To create the role, run the following command. Note: The current shell user must have the role Organization Role Administrator permission.
Create and Assign a Service Account
Switch to temperstack-integration
on GCP Console.
Search for Service Accounts and got to Service Account - IAM & Admin
Click on Create Service Account.
Enter the Service Account Name (say temperstack-service-account).
Add a description
Click on Continue.
Search for temperstack_custom_role
and assign it to the service account.
Click on Done(Service Account User Role is not required).
Create a key for the service account.
Copy the JSON service account information into the Service Account Information field.
For each project being integrated with Temperstack.
Adding GCP Project IDs for intergration with Temperstack
Identify the projects that need to be integrated with Temperstack.
Add the Project IDs to GCP Project IDs field.(comma separated)
Go to IAM and Admin in the GCP Console.
Click on the Grant Access button.
Enter the Service Account ID as the Principal.
Assign the custom role temperstack_custom_role
.
Click on Save.