Skip to content

A repository that deploys a Keycloak instance exposed using Cloudflare tunnel using Terraform

License

Notifications You must be signed in to change notification settings

abasu0713/keycloak-iac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycloak-iac

This is a simple low touch deployment solution for self-managed Keycloak and exposed to public internet through Cloudflare Tunnels, all using Terraform following principles of Infrastructure as Code.

Prerequisite

Usage

  • Clone this repository

  • Add a file variables.auto.tfvars and populate the following variables:

    • cf_domain: The root DNS record you wish to use from Cloudflare
    • cf_zone_id: Cloudflare Zone ID for your root DNS record
  • Add a file secrets.auto.tfvars and populate the following variables:

    • cf_api_token: API Token with Edit permissions for, Account/Cloudflare Tunnel, Account/Access: Apps and Policies, and Zone/DNS
    • cf_account_id: Cloudflare account ID
    • keycloak_admin_user_password: The temporary password you wish to use for your deployment.
  • (Optional) Update any default values in variables.tf

  • Run:

    terraform init
    terraform validate
    terraform plan --out plan.txt
    terraform apply plan.txt
  • Once complete visit: auth.<cf_domain> to validate your deployment

About

A repository that deploys a Keycloak instance exposed using Cloudflare tunnel using Terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages