Giter Site home page Giter Site logo

googlecloudplatform / deploystack Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 10.0 98.62 MB

An extension to Google Cloud's Open In Cloud Shell that turns a terraform project into a one click deployable on Google Cloud

Home Page: https://deploystack.dev

License: Apache License 2.0

Go 98.10% Dockerfile 0.45% Shell 1.45%
google-cloud terraform

deploystack's Introduction

DeployStack

GoDoc

DeployStack is a one click solution for running Terraform projects for Google Cloud Platfom using Cloud Shell. It uses Open in Cloud Shell to guide users from a link to a series or questions to help them install a Terraform solution in their own Google Cloud Platform project space - prompting them to choose answers to questions like "What [datacenter] zone do you want to install in?" And presenting the options to guide them to pic the settings that are right for them.

DeployStack UX

For technical reasons, at this time, it is limited to working with github repos owned by Google Cloud Platform. You can see a list of DeployStack projects on cloud.google.com.

Authoring

Authoring information has been moved to deploystack/AUTHORING.MD.

This Codebase

This project is to centralize all of the tools and processes to get terminal interfaces for collecting information from users for use with DeployStack. Ultimately this codebase creates an executable that runs on Cloud Shell and works with other tools to drive the experience.

It's broken up into packages with different responsibilities:

deploystack
A top level package that ties together user i/o for the executable and passes information to the other packages
deploystack/config
The basic information schema that runs all of the other parts of the executable.
deploystack/gcloud
Communication with Google Cloud via the Go SDK to get things like region and zone lists
deploystack/github
Communication with Github for cloning and getting other metadata about projects
deploystack/terraform
Introspection of Terraform files for tooling and other metadata
deploystack/tui
A terminal user interface that is dynamically built based on config files rendered using BubbleTea , LipGloss, and Bubbles

Testing this Repo

In order to test the helper app in this repo, we need to do a fair amount of manipulation of projects and what not. The tests require a Service Account key json file. To faciliate this there is a script in tools/credsfile that will create a service account, give it the right access and service enablements, and export out a key file to use with testing.

This is not an offical Google product.

deploystack's People

Contributors

github-actions[bot] avatar laurentgrangeau avatar tpryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

deploystack's Issues

Taking google ACE cert, getting error trying to run free lab

qwiklabs-gcp-03-ff0f21e442a7 is the simulation lab i am trying to practice with for my google ACE cert intro lab 'A Tour of Google Cloud Hands-on Lab'

Deploystack says that the project billing is disabled and to just click enter:

Choose a project to use for this application.

NOTE: This app will make changes to the project.
While those changes are reverseable, it would be better to put it in a fresh new project.

  1. CREATE NEW PROJECT
  2. Qwiklabs Resources
  3. qwiklabs-gcp-03-ff0f21e442a7 (Billing Disabled)
    Choose number from list, or just [enter] for qwiklabs-gcp-03-ff0f21e442a7 (Billing Disabled)

however it becomes this error and i am not sure what it means.

There was an issue collecting the information it takes to run this application.

You can try again by typing deploystack install at the command prompt

If the issue persists, please report at https://github.com/GoogleCloudPlatform/deploystack/issues

Extra diagnostic information:
error managing region settings: error activating service for polling: could not enable service: googleapi: Error 400: Billing account for project '448835482165' is not found. Billing must be enabled for activation of service(s) 'compute.googleapis.com,compute.googleapis.com,compute.googleapis.com' to proceed.
Help Token: AZWD64rWvw5MYZr77-Alo0z1oBlgoXhE0jTDuU3gYt5oKk8jVK4IDb7LcJlQHQdhtrXND9UaE6ATRNY8Quj673_7CcDhXlubuJ5VVuDoMVxBp7ON
Details:
[
{
"@type": "type.googleapis.com/google.rpc.PreconditionFailure",
"violations": [
{
"subject": "?error_code=390001\u0026project=448835482165\u0026services=compute.googleapis.com\u0026services=compute.googleapis.com\u0026services=compute.googleapis.com",
"type": "googleapis.com/billing-enabled"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"domain": "serviceusage.googleapis.com/billing-enabled",
"metadata": {
"project": "448835482165",
"services": "compute.googleapis.com,compute.googleapis.com,compute.googleapis.com"
},
"reason": "UREQ_PROJECT_BILLING_NOT_FOUND"
}
]
, failedPrecondition

An error occured collecting the necessary information to run your Deploystack
application. Please try again.

Can you help me?

Im working a helpdesk technician job but am completely new to all this, my company simply gave us the option to sign up for free google certifications and I decided to give it a shot.

One Click Deploy in Google Cloud does not work

I tried to run the One Click Deploy (Optional) tutorial by pressing the button "Open in Google Cloud Shell". After selecting an existing empty project, I got the following error:

Problem-One-Click-Deploy

I also tried with a new project but was not able to enter a proper project name. I tried with different names and always got the same error:

Problem-One-Click-Deploy2

I get this error when going through the tutorial Quickly learn how to build a web app

This is what I ran:
cd deploystack-nosql-client-server
&& deploystack install

This is the error message:
There was an issue collecting the information it takes to run this application.

You can try again by typing deploystack install at the command prompt

If the issue persists, please report at https://github.com/GoogleCloudPlatform/deploystack/issues

Extra diagnostic information:
error managing region settings: error activating service for polling: googleapi: Error 400: The resource id is invalid.
Help Token: AVUsNs1soUgY05lS1kseIRVn4S4MuusKN11H9a0fP60VJfXnh8e09b9JSZqkqrmT1xvApRd0Fky0ypDNt7oq0ERevtAHsIrtz3Of7Oh6l246WzDd
Details:
[
{
"@type": "type.googleapis.com/google.rpc.PreconditionFailure",
"violations": [
{
"subject": "?error_code=210001\u0026resource_id",
"type": "googleapis.com"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"domain": "serviceusage.googleapis.com",
"metadata": {
"resource_id": ""
},
"reason": "RESOURCES_INVALID_RESOURCE_ID"
}
]
, badRequest

An error occured collecting the necessary information to run your Deploystack
application. Please try again.

If the problem persists, please file an issue with the Github repo:
https://github.com/googlecloudplatform/deploystack-nosql-client-server/issues

unable to set project

I got this error when i ran ./deploystack install in cloudshell


Choose number from list.

3

There was an issue collecting the information it takes to run this application.

You can try again by typing deploystack install at the command prompt

If the issue persists, please report at https://github.com/GoogleCloudPlatform/deploystack/issues

Extra diagnostic information:
error managing project settings: error: unable to set project (GCP-xxxxxxx) in environment: cannot set project id: exit status 1
exit status 1

An error occured collecting the necessary information to run your Deploystack
application. Please try again.
----r

so I ran gcloud set config projec to the project id but i get the same error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.