Skip to content

Commit

Permalink
Merge pull request #16 from hic-infra/fix-subnet-comparison
Browse files Browse the repository at this point in the history
Fix empty check of `var.{public,private}-subnets`, delay health check, 2.0.0-beta.3
  • Loading branch information
manics authored Apr 25, 2024
2 parents 530bab0 + f16c4a1 commit 248f821
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Changelog

## 2.0.0-beta.1 - In progress
## 2.0.0-beta.3 - In progress

([full changelog](https://github.com/hic-infra/ecs-keycloak/compare/1.0.0...2.0.0-beta.1))
([full changelog](https://github.com/hic-infra/ecs-keycloak/compare/1.0.0...2.0.0-beta.3))

- Fix empty check of `var.{public,private}-subnets`, delay health check, 2.0.0-beta.3 [#16](https://github.com/hic-infra/ecs-keycloak/pull/16)
- Release 2.0.0-beta.2 [#15](https://github.com/hic-infra/ecs-keycloak/pull/15)
- Add `terraform {backend s3}` back [#14](https://github.com/hic-infra/ecs-keycloak/pull/14)
- Release 2.0.0-beta.1 [#13](https://github.com/hic-infra/ecs-keycloak/pull/13)
- Optionally use existing VPC. Upgrade Keycloak to 24.0.2 [#12](https://github.com/hic-infra/ecs-keycloak/pull/12)
Expand Down
7 changes: 5 additions & 2 deletions ecs-cluster/keycloak.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ locals {
keycloak-hostname = var.keycloak-hostname == "" ? aws_lb.keycloak.dns_name : var.keycloak-hostname

vpc_id = var.vpc-id == "" ? module.vpc[0].vpc_id : var.vpc-id
public_subnets = var.public-subnets == [] ? module.vpc[0].public_subnets : var.public-subnets
private_subnets = var.private-subnets == [] ? module.vpc[0].private_subnets : var.private-subnets
public_subnets = length(var.public-subnets) == 0 ? module.vpc[0].public_subnets : var.public-subnets
private_subnets = length(var.private-subnets) == 0 ? module.vpc[0].private_subnets : var.private-subnets
}

resource "random_password" "db-password" {
Expand Down Expand Up @@ -369,6 +369,9 @@ resource "aws_ecs_service" "keycloak" {
container_port = local.container-port
}

# Java applications can be very slow to start
health_check_grace_period_seconds = 180

# lifecycle {
# ignore_changes = [desired_count]
# }
Expand Down
2 changes: 1 addition & 1 deletion ecs-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variable "region" {

variable "keycloak-image" {
type = string
default = "ghcr.io/hic-infra/ecs-keycloak:2.0.0-beta.2"
default = "ghcr.io/hic-infra/ecs-keycloak:2.0.0-beta.3"
description = "Keycloak image including registry"
}

Expand Down

0 comments on commit 248f821

Please sign in to comment.