
Using GCloud service accounts in Terraform
Now that you are comfortably using ServiceAccounts to interact securely with GCP, are you still not using it? Refer to this Teratip Secure your access to GCloud cli with Service Accounts and start doing so, you want to use it with Terraform too. Terraform requires setting a Token, which gives it access to the GCP API using a different identity. This token can be obtained with the gcloud cli and then exported to a variable. Once you do this, terraform will pick it up automatic

Secure your access to GCloud cli with Service Accounts
Do you want a time-sensitive way to give access to a third party to your GCP account with a low administrative burden? Look no further! Set up a service account! How to do it It's actually very simple: Create a new service account, and give it the permissions needed by the third party Ask the third party for a Google Identity Add this identity to the service account with the TokenCreator permissions Profit! Now the third party needs to execute the gcloud command with an addit

Google Cloud: Importing resources from the Gcloud to IaaC in Terraform
Managing resources in the cloud can be frustrating if the infrastructure is too big or too complex. That’s why we suggest having the resources expressed as Infrastructure as a Code(IaaC), like Terraform between others. But what IF our infrastructure was already created manually? How can we get those resources imported into Terraform? Well, our prayers were heard: Google brings us a pretty easy solution with the help of the command-line interface, with just one single command: