Giter VIP home page Giter VIP logo

solutions-terraform-cloudbuild-gitops's Issues

The terraform.tfvars files should not be commited

As a good practice, the terraform.tfvars files should not be committed to source control.

In that case the CI/CD breaks, as the files are needed in the terraform init step. What would be a good strategy to avoid adding the terraform.tfvars files to source control without breaking the Cloud Build pipeline?

vpc output subnet

Shouldn't it be written something like the following?

output "subnet" {
  value = "${element(module.vpc.subnets, 0).subnet_name}"
}

What is the purpose of master branch?

Currently in this repository I see the following branches:

  • dev (as default)
  • master
  • prod

To my understanding on a strategy where we have on env per branch, we make a change on dev, if everything if fine we then create a PR promoting changes to next env, in this case prod.

  1. In this case why we have master ? What purpose does it serve in the workflow?

  2. Besides that I'm curious in this approach:
    How we update a value in terraform.tfvars for prod?
    Because if we need to keep branches in sync to promoted changes I guess we cannot directly commit to prod. Instead my assumption is that even if we change just a value to prod we have to actually submit it to dev and "promote" it with a PR to prod so the branches remain in sync. Is my assumption correct?

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.