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, 2019 in GCP by anonymous
• 19,610 points
815 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, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Can I give a user access to cloud storage who doesn't have a GCP account?

Yes, you could certainly do this.  You can ...READ MORE

answered Nov 5, 2019 in GCP by Sirajul
• 59,230 points
791 views
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, 2019 in GCP by Sirajul
• 59,230 points
3,643 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP