Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty check of var.{public,private}-subnets, delay health check, 2.0.0-beta.3 #16

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

manics
Copy link
Member

@manics manics commented Apr 24, 2024

var.public-subnets == [] returns false when the default value of public-subnets is [] because it's treated as tolist([]).

The startup time of this container seems to cross the boundary of where ECS considers the task as unhealthy due to multiple health checks failing, so this adds a 3 minutes delay before checking the health of the task.

Also prepares another beta release, 2.0.0-beta.3.

@manics manics changed the title Can't compare empty list [], check length 0 Fix empty check of var.{public,private}-subnets Apr 24, 2024
@manics manics changed the title Fix empty check of var.{public,private}-subnets Fix empty check of var.{public,private}-subnets, 2.0.0-beta.3 Apr 24, 2024
@manics manics changed the title Fix empty check of var.{public,private}-subnets, 2.0.0-beta.3 Fix empty check of var.{public,private}-subnets, delay health check, 2.0.0-beta.3 Apr 24, 2024
@manics manics marked this pull request as ready for review April 24, 2024 13:29
ecs-cluster/keycloak.tf Show resolved Hide resolved
The ternary operator uses short-circuiting, whereas `coalescelist` always evaluates `module.vpc[0].private_subnets` and fails if `module.vpc[0]` doesn't exist.
@manics manics merged commit 248f821 into main Apr 25, 2024
4 checks passed
@manics manics deleted the fix-subnet-comparison branch April 25, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants