Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 1bdbd5e

Browse files
committed
Add the ability for the module to wait for a specified resource
This gives you the ability to wait on the Helm chart deployment until a Fargate profile is in place, for example.
1 parent a08e131 commit 1bdbd5e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Added
1616

1717
- Variable `aws_load_balancer_controller_chart_version`
18+
- Variable `alb_controller_depends_on`
1819

1920
### Removed
2021

main.tf

+3
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ resource "helm_release" "using_iamserviceaccount" {
405405
name = "vpcId"
406406
value = local.aws_vpc_id
407407
}
408+
409+
depends_on = [var.alb_controller_depends_on]
408410
}
409411

410412
resource "helm_release" "not_using_iamserviceaccount" {
@@ -429,5 +431,6 @@ resource "helm_release" "not_using_iamserviceaccount" {
429431
name = "vpcId"
430432
value = local.aws_vpc_id
431433
}
434+
depends_on = [var.alb_controller_depends_on]
432435
}
433436

variables.tf

+4
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ variable "aws_load_balancer_controller_chart_version" {
6969
type = string
7070
default = "1.1.1"
7171
}
72+
73+
variable "alb_controller_depends_on" {
74+
description = "Resources that the module should wait for before starting the controller. For example if there is no node_group, 'aws_eks_fargate_profile.default'"
75+
}

0 commit comments

Comments
 (0)