What is the best way to pull in environment variab...
# typescript
What is the best way to pull in environment variables from the CD process into pulumi? I need to pass aws credentials to a chart for KMS and don’t want to add keys anywhere except for example circleci.
Not sure I understand exactly - you can read environment variables from within your Pulumi program. You can then wrap those in
and pass into resources you create to ensure it is encrypted in the pulumi state.
Variables I’m trying to reach are not in the pulumi.stack.yaml.
Maybe the wrong approach.
I want to grab the aws credentials from circleci env during a deploy and use those.
Can you just do
I have a look at it again. I got an error it was not callable.