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

miniature-leather-70472

07/21/2021, 2:50 PM
is there anyway to do an optional config.require? I have a scenario where I want to use the value in the config file if it exists, but fall back to a default if it doesn't exist. At the minute to do that I'd need to wrap it in a try/catch because config.require will throw an error if it doesn't exist
b

bored-oyster-3147

07/21/2021, 2:53 PM
just use the
get
methods instead of the
require
methods
m

miniature-leather-70472

07/21/2021, 2:54 PM
🤦‍♂️ must have missed that, thanks