quick-fall-21011
02/01/2022, 7:16 AMkeycloak:url
and keycloak:password
as Stack Outputs. In Project B, I'd like to create a new Realm, and other related objects, however the login depends on these credentials being in Project B's config, or environment variables. I'd like it all to be automated, so although I can manually set the configuration in Project B, I'd like to avoid that. I tried the suggested alternative method, using Environment variables and setting them inside the project, e.g.
Environment.SetEnvironmentVariable("KEYCLOAK_CLIENT_ID", "admin-cli");
But seems the process can't access them, as it still complains that they're not set
Diagnostics:
keycloak:index:Realm (pinostrats):
error: 2 errors occurred:
* missing required configuration key "keycloak:clientId":
Set a value using the command `pulumi config set keycloak:clientId <value>`.
* missing required configuration key "keycloak:url": The base URL of the Keycloak instance, before `/auth`
Set a value using the command `pulumi config set keycloak:url <value>`.
Any ideas on how to get around this? Somehow manually instantiate the provider?echoing-dinner-19531
02/01/2022, 9:22 AMquick-fall-21011
02/04/2022, 5:09 AM