Comments (1)
Hello !
Running rover --help
explain how to use the tfVar
and tfVarsFile
, among others.
In order to use a .tfvars
file, you an use this command: rover -tfVarsFile /path/to/test.tfvars
Be sure to use the key-value (i.e: name=value
) format fot your tfvars file, JSON is not yet parsed corrctly by rover
.
In order to convert a JSON into a tfvars, you can use the following snippet:
# Input file
ofile="/path/to/test.tfvars.json"
# Output file
vfile=$(mktemp)
# JSON -> KV variables
cat ${ofile} | \
jq -r '. as $in | keys[] | [.]+["=\""]+[$in[.]]+["\""] | map(tostring) | add' > \
${vfile}
If you are running Rover in Docker, you'll also need to mount the variables file into the container:
vfile="/path/to/test.tfvars"
TERRAFORM_FILES_DIR="/path/to/terraform_files"
docker run \
--rm \
-it \
-p 9000:9000 \
-v "${vfile}:/vars:ro" \
-v ${TERRAFORM_FILES_DIR}:/src \
im2nguyen/rover \
-tfVarsFile /vars"
from rover.
Related Issues (20)
- Dependencies in configuration blocks are not shown HOT 1
- SVG image is not at all visible HOT 2
- SIGSEGV in map.go line 250 HOT 2
- Dependencies GCP
- Windows support HOT 2
- Can we have a new release from main? HOT 2
- [Feature Request] pass a plan file instead of generating inside rover HOT 9
- Issues with terraform versioning when using rover
- Brew Terraform dependency
- Plan fails due to missing variable, even when passing variable with -tfVar HOT 1
- CI/CD Integration ideas
- terraform target option
- UI Improvements
- unable to connect to azure az cli HOT 2
- Was Rover Development Dropped? HOT 4
- UI - pan/zoom enhancements HOT 6
- Support OpenTofu HOT 2
- Terraform Version is out dated HOT 1
- 'invalid memory address or nil pointer dereference' against local plan
- Explain "Continuing without loading module from filesystem"
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 rover.