Title
#fleet
j

JojoD

03/15/2022, 8:53 PM
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?
zwass

zwass

03/15/2022, 9:54 PM
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

JojoD

03/16/2022, 12:10 AM
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?
zwass

zwass

03/16/2022, 1:06 AM
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

JojoD

03/16/2022, 9:42 PM
thanks a lot, Zwass… this definitively helps 👌
1:53 PM
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
1:57 PM
do u know if there is a way to prepare de db using env variables? right now my code is as follows
zwass

zwass

03/22/2022, 6:11 PM
No, you need to run the
prepare db
command to run the migrations.
j

JojoD

03/22/2022, 10:20 PM
oki
10:20 PM
thank you