Comments (3)
Thanks for going through the tutorial!
The Deploy Terraform infrastructure with CircleCI describes the use case you're looking for. This tutorial implements the concepts touched on in the Running Terraform in Automation tutorial.
If you've configured Terraform with S3 backend, it'll use the state in the S3 bucket to generate the plan. To simulate a "remote plan", you want to create a pipeline broken down into two main steps.
- Initialize configuration and generate plan
terraform plan -out tfapply -var-file variables.tfvars
- Use
terraform apply -auto-approve tfapply
to apply the plan binary generated from step 1
I highly recommend reading the two tutorials linked above. If you have any addition questions, I'm happy to help!
from learn-terraform-github-actions.
This issue #24 touches adding a manual approval process.
You can also try Terraform Cloud. It has a free tier with remote plan/state, GitHub integrations, and more. This tutorial walks you through migrating your current configuration to Terraform Cloud.
from learn-terraform-github-actions.
Nice, thanks for the tips :)
from learn-terraform-github-actions.
Related Issues (14)
- had to change the terraform.yml file to make it work HOT 2
- No output in "Show Plan" When using terragrunt HOT 2
- Terraform Plan Status does not fail workflow after Terraform 1.4 release HOT 3
- No output in "Show Plan" HOT 16
- Manual approval between plan and apply HOT 6
- Use approved plan file for apply
- different paths in _temp HOT 1
- Why too much people create PR to this repo?
- `apply` runs when merging code from `main` to feature branch HOT 1
- If the plan is large then the step to comment it fails HOT 3
- Fork error given for any issues during the terraform workflow HOT 2
- Cannot re-open PR as auto-close message suggests HOT 1
- Terraform syntax highlighting HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-terraform-github-actions.