orange-kite-8099111/28/2021, 9:09 PM
A simple require() or get() can access the mystackname: prefixed values. What's the syntax for accessing the other variables?
config: mystackname:SCHEMA: secure: qqqqq mystackname:SCHEMA_CONFIG: https:// azure-native:location: westus2 azure-native:subscriptionId: aaaaaa azure-native:tenantId: bbbbbb fluid:password: secure: ccccccc fluid:username: abc*<http://xyz.com|xyz.com>
const config = new pulumi.Config() const schema = config.require( 'SCHEMA' ) // the following don't work const location = config.require( 'location' ) const location = config.require( 'azure-native:location' ) const location = config.require( 'azure-native.location' )
little-cartoon-1056911/28/2021, 9:11 PM
const location = new pulumi.Config('azure-native").require("location");
orange-kite-8099111/28/2021, 9:28 PM
little-cartoon-1056911/28/2021, 9:57 PM
If you are writing code that will be imported into a broader project, such as your own library of components, you should pass your library’s name to the constructor. This string is used as a namespace for all configuration keys. Similarly, if you want to access the config of another library, such as the config for a standard library like aws, you should also pass the library’s name to the constructor.
orange-kite-8099111/28/2021, 11:18 PM
little-cartoon-1056911/28/2021, 11:33 PM
, and it'll get values from those namespaces. Nothing to do with libraries...
orange-kite-8099111/28/2021, 11:43 PM