Giter VIP home page Giter VIP logo

Comments (8)

danisla avatar danisla commented on June 11, 2024

@rwillard are you running Terraform on linux? I think something changed in the linux build for terraform that broke the external provider.

I was able to get it working with v0.10.7.

from terraform-google-vault.

rwillard avatar rwillard commented on June 11, 2024

@danisla I'm running the commands from GCP cloud shell. Documentation says it's a Debian based Linux OS. I am following this guide https://cloud.google.com/solutions/using-vault-for-secret-management.

from terraform-google-vault.

danisla avatar danisla commented on June 11, 2024

@rwillard in the tutorial step 6 for configuring cloud shell with terraform, run this instead to revert to v0.10.7:

curl -L https://goo.gl/wRnGxT -o ${HOME}/.tfdocker
source ${HOME}/.tfdocker

This is a temporary work around until the terraform issue is resolved.

from terraform-google-vault.

rwillard avatar rwillard commented on June 11, 2024

I'll run it again to be sure, and post results here. But I did try yesterday with the 0.10.7 version of the docker image. Let me make sure though.

from terraform-google-vault.

rwillard avatar rwillard commented on June 11, 2024

@danisla I went through all the steps in a new project, and used your workaround to use the 0.10.7 image, but I got the same results.

* module.vault.data.external.vault-tls-key-encrypted: data.external.vault-tls-key-encrypted: failed to execute "/home/robert/terraform-google-vault/examples/vault-on-gce/.terraform/m
odules/85d849467b2166b96780a48cb9f6e5d7/encrypt_file.sh": fork/exec /home/robert/terraform-google-vault/examples/vault-on-gce/.terraform/modules/85d849467b2166b96780a48cb9f6e5d7/encr
ypt_file.sh: no such file or directory
* module.vault.data.external.vault-tls-cert-encrypted: data.external.vault-tls-cert-encrypted: failed to execute "/home/robert/terraform-google-vault/examples/vault-on-gce/.terraform
/modules/85d849467b2166b96780a48cb9f6e5d7/encrypt_file.sh": fork/exec /home/robert/terraform-google-vault/examples/vault-on-gce/.terraform/modules/85d849467b2166b96780a48cb9f6e5d7/en
crypt_file.sh: no such file or directory
* module.vault.data.external.sa-key: data.external.sa-key: failed to execute "/home/robert/terraform-google-vault/examples/vault-on-gce/.terraform/modules/85d849467b2166b96780a48cb9f
6e5d7/get_sa_key.sh": fork/exec /home/robert/terraform-google-vault/examples/vault-on-gce/.terraform/modules/85d849467b2166b96780a48cb9f6e5d7/get_sa_key.sh: no such file or directory

Thank you for your help with this!

from terraform-google-vault.

ericnorris avatar ericnorris commented on June 11, 2024

I think this issue may be related to this hashicorp/docker-hub-images#23 - the scripts in this repo use /bin/bash in the shebang (example) which isn't in the docker image.

from terraform-google-vault.

danisla avatar danisla commented on June 11, 2024

@ericnorris yup that's it. The image doesn't have bash in it anymore. Quick fix is to just download terraform and install it in cloud shell. I'll work on updating the tutorial to make it compatible with the docker image.

from terraform-google-vault.

danisla avatar danisla commented on June 11, 2024

The tutorial has been updated to install Terraform locally rather than using the docker image.

from terraform-google-vault.

Related Issues (20)

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.