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 force-pushed the fix-subnet-comparison branch from b703895 to b0a72f2 Compare April 24, 2024 11:40
@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 force-pushed the fix-subnet-comparison branch from b0a72f2 to fb7c371 Compare April 24, 2024 13:26
@manics manics marked this pull request as ready for review April 24, 2024 13:29
@manics manics requested a review from AaronJackson April 24, 2024 13:38
ecs-cluster/keycloak.tf Show resolved Hide resolved
@manics manics force-pushed the fix-subnet-comparison branch from 54a14cd to 4c92a0a Compare April 24, 2024 14:52
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