Thread
#getting-started
    b

    bright-receptionist-28471

    5 months ago
    Is it possible to get config values from a default provider? I want to get the default project assigned to the GCP default provider. To work around I can add another config key for project, but it seems strange to have both
    gcp:project
    and
    <namespace>:project
    set in config
    p

    prehistoric-activity-61023

    5 months ago
    If itโ€™s already available in the config, you can easily read the values from another namespace.
    Config
    constructor takes an additional parameter - you can specify the namespace there
    b

    bright-receptionist-28471

    5 months ago
    Oh! Thanks for the pointer! I was looking for exactly that ๐Ÿ™‚
    p

    prehistoric-activity-61023

    5 months ago
    gcp_config = pulumi.Config("gcp")
    gcp_project = gcp_config.require("project")
    something like that ๐Ÿ™‚
    b

    bright-receptionist-28471

    5 months ago
    yup works like a charm, thanks again