Trying to provision FSx for Windows File Server us...
# atmos
j
Trying to provision FSx for Windows File Server using self-managed Active Directory, which requires explicit username and password. The values are stored in secrets manager, but attempts to parse the value appear to be fail with one or more errors:
Copy code
password: !terraform.state secrets-manager "wrapper.domainjoin.secret_string[password] // ""MOCK__password"""
            username: !terraform.state secrets-manager "wrapper.domainjoin.secret_string[username] // ""MOCK__username"""
Error message:
Copy code
failed to evaluate terraform backend variable wrapper.domainjoin.secret_string[username] // "MOCK__username" for component  secrets-manager  in stack  cfsb-infra-fsx-ue1-dev 
in YAML function:  !terraform.state secrets-manager "wrapper.domainjoin.secret_string[username] // ""MOCK__username""" 
EvaluateYqExpression: failed to evaluate YQ expression '.wrapper.domainjoin.secret_string[username] // "MOCK__username"': 1:35: lexer: invalid input text "username] // \"MO..."
I'm also trying to put the values in quotes, but that doesn't appear to work either.
e
Can you try using single quotes as I believe we had a recent PR that added support for that?
j
I think the larger issue, after discussing with the team, is that the secret created by atmos/terraform is a placeholder and the actual values are put into the secret manually
so not sure if that is part of the issue
e
I'm curious if Atmos supported encrypted secrets (e.g. SOPS), would that help?
j
Oh! Maybe?