has get functionality, and it's accessible programmatically. It looks like this:
Copy code
config = pulumi.Config();
name = config.require('name');
lucky = config.get_int('lucky') or 42
print(f'Hello, {name} -- I see your lucky number is {lucky}!')
Thanks for the info. But I get an error when trying to use that inside the inline program
PulumiFn
that I don't get when using
pulumi.runtime.get_config
Copy code
error: an unhandled error occurred: Missing required configuration variable 'iac-demo:proj:aws_account_id'
please set a value using the command `pulumi config set iac-demo:proj:aws_account_id <value>`
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.