diff --git a/.changelog/36691.txt b/.changelog/36691.txt new file mode 100644 index 00000000000..c5172fa9a15 --- /dev/null +++ b/.changelog/36691.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_ecs_service: Correctly set `alarms.rollback` on resource Create and Update +``` \ No newline at end of file diff --git a/internal/service/ecs/service.go b/internal/service/ecs/service.go index ea54a14b10a..d1577068831 100644 --- a/internal/service/ecs/service.go +++ b/internal/service/ecs/service.go @@ -1156,7 +1156,7 @@ func expandAlarms(tfMap map[string]interface{}) *ecs.DeploymentAlarms { apiObject.Enable = aws.Bool(v) } - if v, ok := tfMap["enable"].(bool); ok { + if v, ok := tfMap["rollback"].(bool); ok { apiObject.Rollback = aws.Bool(v) }