Passing secret variable to Terraform/openTofu task not working #2287
Replies: 3 comments
-
I'm having the same issue, I believe its a bug |
Beta Was this translation helpful? Give feedback.
-
I got a problem with this too. |
Beta Was this translation helpful? Give feedback.
-
Have a similar issue here. I have an environment configured with AWS credentials. When running the Tofu module, it complains about missing credentials. However, when I create a Bash script and run that to print the whole ENV, everything shows up as expected. I even called the tofu executable from my Bash script and it ran as expected. Edit: Updating to v2.10.35 (was on .30) fixed the issue. |
Beta Was this translation helpful? Give feedback.
-
I set the following survey variable as a secret.
![grafik](https://private-user-images.githubusercontent.com/98452530/358527015-97087742-a76b-41f3-be04-024df4acb0f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODIwNzYsIm5iZiI6MTczOTY4MTc3NiwicGF0aCI6Ii85ODQ1MjUzMC8zNTg1MjcwMTUtOTcwODc3NDItYTc2Yi00MWYzLWJlMDQtMDI0ZGY0YWNiMGYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA0NTYxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyMjA0MmUyYTI4NzY1OGM0OWU5ZWQ0YTdhMTM0M2RlNDA4ZmYyNjJjYTVlMjBkM2M1ZmNhNjEyMWE4MDJkOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OhNSI8rLwCbk9Lb6jNqkEM-0xWJ1CLHq2PGJ93jhXoU)
And declared it like this in my terraform code.
Still, I get this error. With pure string variables (like hostname) it works fine. But as soon as I define it as a secret in either Semaphore or my TF code (or both), I get this error.
Am I doing something wrong or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions