-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] pass a plan file instead of generating inside rover #115
Comments
What you can currently do is to create your plan through terraform and parse it as json to rover: terraform plan -out plan.out docker run --rm -it -p 9000:9000 -v $(pwd):/src im2nguyen/rover:latest -planJSONPath=plan.json That's how I'm currently running rover due to plugins issues |
@captaindanila That looks like what I am looking for. I will give it a try. Thank you. |
It works like a charm! 💣 You can even simplify the command to send just a plan file: Worth mention that @captaindanila IMHO worth adding this approach (run capability) into the README file. |
@lkurzyniec Sorry for the delay of my reply. I made sure the measure enables me to start the server and generate the zip file. Thank you. Let me another question to generate a SVG image with the measure. I tried to use the
|
According to my research, rover take a screenshot using
https://github.com/chromedp/chromedp#frequently-asked-questions |
@yu-iskw everything is working fine. Here is my command and result: |
@lkurzyniec Thank you for sharing the screen capture. I am assuming there is anything wrong with the consiguration of docker on my machine. I am going to look into it more.
Tough I built a docker image with the rover repository, that doesn't work. And I tried a couple of values to |
@yu-iskw double-check your JSON terraform plan file
|
Thanks. Indeed, I’m able to launch the sever of rover and generate the static HTML with the docker image. I think the plan.json file is probably fine. I will investigate something around chromedp, as apparently there is any issue to internally launch it to capture an screenshot inside the docker container on my laptop. |
Motivation
We use terraform to set up Google Cloud. And we store terraform states in GCS buckets. So, we need permissions and credentials to execute
terraform plan
.I would like to integrate rover with GitHub Actions. But when we use a custom container action, it is quite difficult to pass credentials of Google Cloud SDK to it. So, I would like to separate the step to generate a plan file from the other to run rover.
Expected behavior
terraform plan
command in place ofrover
.rover
recieves the plan file.The text was updated successfully, but these errors were encountered: