Posts

Showing posts with the label google-cloud-platform

ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error:

ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error: When I run 'gcloud app deploy' I get error response 9. The error message I get is Updating service [default] (this may take several minutes)...failed. ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error: app.js // Imports the Google Cloud client library const Datastore = require('@google-cloud/datastore'); // Your Google Cloud Platform project ID const projectId = 'myid'; // Creates a client const datastore = new Datastore({ projectId: projectId, }); // The kind for the new entity const kind = 'Task'; // The name/ID for the new entity const name = 'sampletask1'; // The Cloud Datastore key for the new entity const taskKey = datastore.key([kind, name]); // Prepares the new entity const task = { key: taskKey, data: { description: 'Buy milk', }, }; // Saves the entity datastore .save(task) .then(() => { console.log(`Saved ${ta...

How to link Alexa with cloud firestore

How to link Alexa with cloud firestore I have created the credential in Google cloud platform and when I link my Alexa skill it returns an access token. var accessToken = this.event.session.user.accessToken; console.log(accessToken); admin.auth().verifyIdToken(accessToken) .then(function(decodedToken) { var uid = decodedToken.uid; console.log(uid); // ... }).catch(function(error) { console.log(error); // Handle error }); Error: Decoding Firebase ID token failed. Make sure you passed the entire string JWT which represents an ID token. I cannot use this access token to authenticate in firebase. They give me the above error and asks gor google ID token – Mohan Burman Jun 29 at 9:11 By clicking "Post Your Answer", you acknowledge that you have read our upda...

AWS vs GCP Cost Model

AWS vs GCP Cost Model I need to make a cost model for AWS vs GCP. Currently, our organization is using AWS. Our biggest services used are: I have very limited knowledge of cloud platforms. However, I have access to: Of the 8 major services listed above are main usage and costs go to EC2, S3, and RDS. Our director of engineering mentioned that I should be most concerned with vCPU and memory. I would appreciate any insight (big or small) that people have into how I can go about creating this model, any other factors I should consider, which functionalities of the two providers for the services are considered historically "better" or cheaper, etc. Thanks in advance, and any questions people may have, I am more than happy to answer. -M 2 Answers 2 You should certainly cost-optimize your resources. It's so easy to create cloud resources that people don't always think about turning thin...