Articles on: Developers

Pulumi Keycloak provider

Pulumi access is only available for paid dedicated deployments

Cloud-IAM Keycloak deployments are compatible with Keycloak pulumi provider because deployed Keycloaks expose the full Keycloak REST admin API.

However currently Cloud-IAM does not provide a Pulumi provider to create or delete deployments. Please contact our support if you are interested.

Troubleshooting



Sometimes when adding a new realm pulumi gets a timeout within seconds as api response

Issue



keycloak:index:Realm (REALM_NAME):
error: 1 error occurred:
error sending request: Post "https://YOUR_DOMAIN.cloud-iam.com/auth/admin/realms": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Resources:
1 unchanged

Duration: 7s


Solution



Increasing the request timeout will do the trick.

The pulumi native customTimeouts flag does not seem to work but setting KEYCLOAK_CLIENT_TIMEOUT=60 environment variable to 60 seconds will work.

Updated on: 14/06/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!