googlecloudplatform / solutions-terraform-cloudbuild-gitops Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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?
Shouldn't it be written something like the following?
output "subnet" {
value = "${element(module.vpc.subnets, 0).subnet_name}"
}
Currently this repo only works with legacy Terraform 0.11.x versions, it should be updated for Terraform 0.12.x.
Currently in this repository I see the following branches:
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
.
In this case why we have master
? What purpose does it serve in the workflow?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.