Hello <@UHTP242EB>, are these issues automatically...
# contribute
l
Hello @broad-dog-22463, are these issues automatically created by a bot? https://github.com/pulumi/pulumi-keycloak/issues/100 Just asking, because we contributed to the upstream TF provider and v3.5.0 is available: https://github.com/mrparkers/terraform-provider-keycloak/releases/tag/v3.5.0 We would like to see this in a new Pulumi provider version. πŸ™πŸΌ
b
I can get you out a release today ;)
πŸš€ 1
l
You rock! (as always)
@broad-dog-22463 just an explicit mention that we contributed a set of new resources to the TF provider, so probably these need to be mapped in the Pulumi provider. But I'm probably telling you the obvious. πŸ™‚
@broad-dog-22463 thanks for the new Pulumi Keycloak provider release! πŸ˜‰
q
Hi @broad-dog-22463 . Thanks for the keycloak provider, it's very neat that I can setup my infra all in pulumi using this. I have an issue with importing a Client though.
Copy code
var realmManagementClient = new Client("realm-management-client", new ClientArgs()
                {
                    Name = "${client_realm-management}",
                    Description = "Imported by Pulumi",
                    StandardFlowEnabled = true,
                    RealmId = "realm-test",
                    ClientId = "realm-management",
                    LoginTheme = "keycloak",
                    AccessType = "BEARER-ONLY"
                },
                new CustomResourceOptions()
                {
                    ImportId = "realm-test/realm-management",
                    Provider = cro.Provider
                });
fails with
Copy code
keycloak:openid:Client (realm-management-client):
    error: importing realm-test/realm-management: importer for realm-test/realm-management returned a empty resource state. This is always the result of a bug in the resource provider - please re
port this as a bug in the Pulumi provider repository.
I'm trying to setup token-exchange, which requires me to create a ClientPolicy for the
realm-management
client
Ideally I'd like to avoid importing this resource via command line
I ended up writing a bespoke client that will call the keycloak rest endpoint to get the clientId that I was after