https://pulumi.com logo
#general
Title
# general
b

bitter-morning-96130

01/12/2024, 12:36 AM
hi all! is there a way to fetch all configs within a namespace? I am setting all runtime env vars for an aws service (see below) and instead of declaring each one with
config.getSecret('my-var')
i’d like to just fetch all and then programmatically iterate over the list to build the env var object:
Copy code
runtimeEnvironmentVariables: {
  SOME_VAR: config.getSecret('some-var')
  ANOTHER_VAR: config.getSecret('another-var')
  ...
}
or are there any other preferred ways to go about setting all of these env vars for my service?