File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/capacity-provider Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ resource "aws_ecs_capacity_provider" "this" {
3535resource "aws_ecs_cluster_capacity_providers" "this" {
3636 cluster_name = var. ecs_cluster_name
3737
38- capacity_providers = [for capacity_provider in var . capacity_providers : capacity_provider . name ]
38+ capacity_providers = [for k , capacity_provider in aws_ecs_capacity_provider . this : capacity_provider . name ]
3939
4040 dynamic "default_capacity_provider_strategy" {
4141 for_each = var. default_capacity_provider_strategies
4242 iterator = default_capacity_provider_strategies
4343
4444 content {
45- capacity_provider = default_capacity_provider_strategies. value . capacity_provider
45+ capacity_provider = aws_ecs_capacity_provider . this [ default_capacity_provider_strategies . value . capacity_provider ] . name
4646 base = default_capacity_provider_strategies. value . base
4747 weight = default_capacity_provider_strategies. value . weight
4848 }
You can’t perform that action at this time.
0 commit comments