Comments (5)
@benjaminch https://gist.github.com/anthonymayer/fd54ad43a2cf100680dff536db1fabc4 here's the state and the terraform code that sets it up is mostly below. it's a little bit nested, but here are the relevant parts
resource "qovery_job" "this" {
# Required
environment_id = var.environment_id
name = var.name
# Optional
cpu = var.cpu
memory = var.memory
environment_variables = [
for envKey, envValue in var.environment_variables : {
key = envKey
value = envValue
}
]
secrets = [
for secKey, secValue in var.secrets : {
key = secKey
value = secValue
}
]
schedule = var.schedule
source = {
docker = {
dockerfile_path = var.dockerfile_path
git_repository = {
url = var.url
branch = var.branch
root_path = var.root_path
}
}
}
healthchecks = { }
}
var.secrets
gets set to jsondecode(data.aws_secretsmanager_secret_version.insurance_service_secrets.secret_string)
which comes from
data "aws_secretsmanager_secret_version" "insurance_service_secrets" {
secret_id = "SECRETS_ID_REDACTED"
}
we do the exact same thing with aws_secretsmanager_secret_version
and the loop to set the secrets for qovery_application
and it works fine there
from terraform-provider-qovery.
@benjaminch I believe I figured out what the cause of the problem is. I have some secrets I'm trying to set with an empty value. This isn't a problem for qovery_application
though, but it also fails on qovery_environment
. Which behavior should it be? It would be great to support empty values, but most important would be consistent behavior between the resource types IMO.
from terraform-provider-qovery.
Hello @anthonymayer :)
Yes you're right, it should be allowed to set an empty value.
We're currently working on enriching the variables by adding alias & overrides support. The fix for this issue will be embedded too.
I'll tell you when it's done
from terraform-provider-qovery.
Hey @anthonymayer !
Thanks for reporting :)
Do you mind sharing your job terraform setup (remove sensible content)?
Thanks !
from terraform-provider-qovery.
Hello @anthonymayer,
We just released the v0.18.5
that should fix your issue.
from terraform-provider-qovery.
Related Issues (20)
- terraform container resource naming error HOT 3
- Environment variables set to the empty string "" error out HOT 6
- SIGSEGV if `qovery_container_registry` miss `config` HOT 1
- Wrong documentation for `resource container` HOT 2
- Qovery Container Registry runtime error HOT 4
- test
- Cluster Advanced Settings can't be set from the Terraform Provider HOT 2
- Provider crash HOT 4
- terraform plan failed after upgrade HOT 4
- Upgrade to terraform-plugin-framework > 1.x HOT 4
- Healtchecks - Provider produced inconsistent result after apply HOT 1
- Exposing the VPC ID on the qovery_cluster resource?
- Add "domain" attribute to terraform resource "qovery_helm"
- Environment variable scope definition HOT 3
- Provider produced inconsistent result after apply HOT 1
- Bug in Terraform provide in switching auto-preview on HOT 4
- Add "domain" attribute to terraform resource "qovery_application" HOT 8
- Include terraform output in terraform resources HOT 4
- Cannot override environment variable HOT 2
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 terraform-provider-qovery.