Git Product home page Git Product logo

aws-ecs-keycloak's Introduction

AWS ECS Keycloak ๐Ÿ”‘

The Terraform and Dockerfile needed to run Keycloak in Fargate. This is based on @sibinnediyoram's Medium post.

Setup

Easiest way to get started is with a VS Code devcontainer or GitHub Codespace as it has the tools you'll need installed.

  1. Set values in ./terragrunt/env/dev/env_vars.hcl.
  2. Set your AWS account ID and region in the Makefile.
  3. Run the following:
make setup

Architecture

  1. This creates an ECS Fargate cluster with a single keyclock service running.
  2. The database is an Aurora MySQL Serverless V2 cluster with an RDS proxy to handle connection pooling.
  3. This is fronted by an ALB with a single listener and target group.
  4. The VPC has two public subnets (with the ALB) and two private subnets (with the ECS Fargate cluster and RDS proxy).

GitHub Actions

Uncomment the pull_request and push event triggers in the .github/workflows/terraform_*.yml workflows to enable GitHub Actions. You will need to set the repository variables below and have GitHub OIDC auth setup in the AWS account:

AWS_TF_APPLY_ROLE_ARN # OIDC role ARN for the Terraform apply action
AWS_TF_PLAN_ROLE_ARN  # OIDC role ARN for the Terraform plan action
AWS_REGION            # The region to deploy to

Add another environment

Copy the ./terragrunt/env/dev directory and update env_vars.hcl file with new values.

aws-ecs-keycloak's People

Contributors

patheard avatar

Watchers

 avatar  avatar

Forkers

mahamoudtbs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.