is it possible to set the environment variable her...
# general
w
is it possible to set the environment variable here, to the value of another variable? https://www.infracost.io/docs/features/config_file/#examples
m
Hey Guy - no this isn’t currently possible, you’d have to use the real value of these env vars to get picked up. If you don’t have access to these values until pipeline runtime you could use something using something like
sed
to replace the matching string.
e.g, something like:
Copy code
sed -i "s/$ENV_VAR/PLACEHOLDER_VALUE/g" "infracost.yml"
@worried-soccer-67640 you could also do something like this:
Copy code
version: 0.1

projects:
  - path: dev
    usage_file: dev/infracost-usage.yml
    env:
      AWS_PROFILE: ${ENV_VAR}
w
so it is possible?
m
with this notation
${ENV_VAR}
I think so