Merge pull request #11565 from hashicorp/b-aws-ecs-service-type-case
provider/aws: Fix issue with ECS Placement Strat. and type casing
This commit is contained in:
commit
3cb8557d54
|
@ -357,7 +357,7 @@ func flattenPlacementStrategy(pss []*ecs.PlacementStrategy) []map[string]interfa
|
||||||
for _, ps := range pss {
|
for _, ps := range pss {
|
||||||
c := make(map[string]interface{})
|
c := make(map[string]interface{})
|
||||||
c["type"] = *ps.Type
|
c["type"] = *ps.Type
|
||||||
c["field"] = *ps.Field
|
c["field"] = strings.ToLower(*ps.Field)
|
||||||
results = append(results, c)
|
results = append(results, c)
|
||||||
}
|
}
|
||||||
return results
|
return results
|
||||||
|
|
|
@ -445,7 +445,7 @@ resource "aws_ecs_service" "mongo" {
|
||||||
desired_count = 1
|
desired_count = 1
|
||||||
placement_strategy {
|
placement_strategy {
|
||||||
type = "binpack"
|
type = "binpack"
|
||||||
field = "MEMORY"
|
field = "memory"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue