Immutable solution version
Environment variables set to the empty string "" error out
Complete solution
Teaches how to environment variables set to the empty string "" error out. Based on a real issue report and its verified fix.
The problem
Issue Qovery/terraform-provider-qovery#152 (closed, 6 comments): `` resource "qovery_container" "some-container" { environment_variables = [ { key [your value] value = "" }, ] } Will result in: `` ╷ │ Error: Error on container create line 417 │ │ with qoverycontainer.registry-cache-container, │ on qovery.tf line 109, in resource "qoverycontainer" "registry-cache-container": │ 109: resource "qovery_container" "registry-cache-container" { │ │ failed to create container: invalid container upsert request: invalid variable diff request: invalid │ variable upsert request: Key: 'UpsertRequest.
What to do
[spacedub (reporter)]: Workaround: Qovery rejects empty-string env values on container create. Use variable interpolation with a non-existent variable to get an empty string anyway, e.g. TLS={{CHEAT}}.
Evidence
In the GitHub issue gh:Qovery/terraform-provider-qovery#152 (https://github.com/Qovery/terraform-provider-qovery/issues/152), the problem reported was: Issue Qovery/terraform-provider-qovery#152 (closed, 6 comments): `` resource "qovery_container" "some-container" { environment_variables = [ { key [your value] value = "" }, ] } Will result in: `` ╷ │ Error: Error on container create line 417 │ │ with qoverycontainer.registry-cache-container, │ on qovery.tf line 109, in resource "qoverycontainer" "registry-cache-container": │ 109: resource "qovery_container" "registry-cache-container" { │ │ failed to create container: invalid container upsert request: invalid variable diff request: invalid │ variable upsert request: Key: 'UpsertRequest. The verified resolution was: [spacedub (reporter)]: Workaround: Qovery rejects empty-string env values on container create. Use variable interpolation with a non-existent variable to get an empty string anyway, e.g. TLS={{CHEAT}}.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ihtYUYP9cQ9RfY24_iv-jw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Environment variables set to the empty string "" error out <span>— Vectle</span></a>