File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ module "ecs_instance_label" {
120
120
name = var. name
121
121
namespace = var. namespace
122
122
stage = var. stage
123
- tags = merge ({
123
+ tags = merge ({
124
124
" Cluster" = module.ecs.this_ecs_cluster_name
125
125
}, var. tags )
126
126
}
@@ -256,7 +256,7 @@ module "autoscaling_group" {
256
256
# ############################################################
257
257
258
258
module "alb" {
259
- source = " git::https://github.com/cloudposse/terraform-aws-alb.git?ref=tags/0.8 .0"
259
+ source = " git::https://github.com/cloudposse/terraform-aws-alb.git?ref=tags/0.9 .0"
260
260
attributes = var. attributes
261
261
delimiter = var. delimiter
262
262
name = var. name
@@ -333,6 +333,8 @@ resource "aws_security_group_rule" "http_ingress" {
333
333
}
334
334
335
335
data "aws_alb_target_group" "default" {
336
+ depends_on = [module . alb ]
337
+
336
338
arn = module. alb . default_target_group_arn
337
339
}
338
340
@@ -378,7 +380,7 @@ module "traefik" {
378
380
ecs_cluster_arn = module. ecs . this_ecs_cluster_arn
379
381
ecs_cluster_region = data. aws_region . current . name
380
382
alb_security_group_id = module. alb . security_group_id
381
- alb_target_group_arn = module . alb . default_target_group_arn
383
+ alb_target_group_arn = data . aws_alb_target_group . default . arn
382
384
vpc_id = module. vpc . vpc_id
383
385
subnet_ids = module. dynamic_subnets . public_subnet_ids
384
386
You can’t perform that action at this time.
0 commit comments