hello all, I’m trying to update to the 4.0.10 vers...
# fleet
j
hello all, I’m trying to update to the 4.0.10 version using an AWS Secret Key for
FLEET_MYSQL_PASSWORD
, if I type the value as string, it will run properly, however if I try to retrieve the password from the secret key, it will not work and the DB connection will be denied… is there any specific value type that I should be placing in this variable?
z
Fleet expects the password to be a string in this environment variable. Perhaps you need to modify your syntax for getting the secret into the env var?
j
thank you @zwass, I’m totally new to this, by chance could you share any documentation on how to check the syntax sent to the env var?
z
Perhaps it's helpful to look at how we use the secret in the reference terraform? https://github.com/fleetdm/fleet/blob/main/tools/terraform/ecs.tf#L158-L161
j
thanks a lot, Zwass… this definitively helps 👌
🍻 1
Hi @zwass, is me again … so I was able to troubleshoot the secret key issue, but now when I try to deploy the new version, it returns the following message, I’ve even added the variable mentioned there
do u know if there is a way to prepare de db using env variables? right now my code is as follows
z
No, you need to run the
prepare db
command to run the migrations.
j
oki
thank you