Can I use Compute Engine virtual machine instance to access a Cloud Spanner database?

0 votes
Can I use Compute Engine virtual machine instance to access a Cloud Spanner database? Is this possible?
Nov 13 in GCP by anonymous
• 6,650 points
21 views

1 answer to this question.

0 votes

Yes, this is possible.

You can grant your Compute Engine virtual machine instance permission to access a Cloud Spanner database.

Your instance can access the Cloud Spanner API from Compute Engine by using a service account to act on your behalf. 

The service account provides application default credentials for your applications so that you do not need to configure each Compute Engine instance to use your personal user credentials.

For an in-depth understanding of how you could do this, refer https://cloud.google.com/spanner/docs/configure-virtual-machine-instance

Hope this helps!

.

answered Nov 13 by Sirajul
• 40,980 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9 in GCP by Sirajul
• 40,980 points
30 views
0 votes
1 answer