This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # om namah shivay | |
| from flask import Flask | |
| from flask import jsonify | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def hello(): | |
| dictionary = {'message': 'Hello from Python!'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # om namah shivay | |
| # See https://cloud.google.com/appengine/docs/flexible/go/configuring-your-app-with-app-yaml | |
| # and https://cloud.google.com/appengine/docs/flexible/go/reference/app-yaml for more info | |
| runtime: go | |
| env: flex | |
| service: go | |
| # The settings below are to reduce costs during testing and not appropriate for production use. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // om namah shivay | |
| package main | |
| import ( | |
| "net/http" | |
| "log" | |
| "encoding/json" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # om namah shivay | |
| # see https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml for more info | |
| runtime: nodejs | |
| env: flex | |
| resources: | |
| cpu: 1 | |
| memory_gb: 0.5 | |
| disk_size_gb: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "apollo-graphql-server-google-app-engine", | |
| "version": "1.0.0", | |
| "description": "Apollo GraphQL Server on Google App Engine in under 5 minutes!", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "node index.js", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Raj Chaudhary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // om namah shivay | |
| // see https://www.apollographql.com/docs/apollo-server/example.html for more info | |
| const express = require('express'); | |
| const bodyParser = require('body-parser'); | |
| const { graphqlExpress, graphiqlExpress } = require('apollo-server-express'); | |
| const { makeExecutableSchema } = require('graphql-tools'); | |
| // Some fake data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // om namah shivay | |
| exports.handler = (event, context, callback) => { | |
| callback(null, 'Hello world! This is version 2.'); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # om namah shivay | |
| secrets: | |
| - kmsKeyName: projects/[PROJECT_ID]/locations/global/keyRings/[KEY_RING_NAME]/cryptoKeys/[KEY_NAME] | |
| secretEnv: | |
| AWS_ACCESS_KEY_ID: [BASE_64_ENCRYPTED_AWS_ACCESS_KEY_ID] | |
| AWS_SECRET_ACCESS_KEY: [BASE_64_ENCRYPTED_AWS_SECRET_ACCESS_KEY] | |
| steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // om namah shivay | |
| exports.handler = (event, context, callback) => { | |
| callback(null, 'Hello world! This is version 1.'); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # om namah shivay | |
| steps: | |
| # build the docker image | |
| - name: gcr.io/cloud-builders/docker | |
| args: | |
| - build | |
| - -t | |
| - gcr.io/$PROJECT_ID/aws-cli |