Commit 563887f 1 parent c6c80cc commit 563887f Copy full SHA for 563887f
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ resource "aws_ecs_capacity_provider" "worker_lt_gpu_provider" {
101
101
102
102
auto_scaling_group_provider {
103
103
auto_scaling_group_arn = aws_autoscaling_group. worker_lt_asg . arn
104
- managed_termination_protection = " DISABLED "
104
+ managed_termination_protection = " ENABLED "
105
105
106
106
managed_scaling {
107
107
status = " ENABLED"
Original file line number Diff line number Diff line change @@ -64,16 +64,16 @@ resource "aws_iam_role" "processing_worker_role" {
64
64
65
65
resource "aws_iam_policy" "processing_worker_policy" {
66
66
name = " processing-worker-task-policy${ var . env } "
67
- description = " Policy for ECS tasks to manage instance protection during Auto Scaling scale-in events and get CloudWatch metrics"
67
+ description = " Policy for ECS tasks to manage ecs task protection during Auto Scaling scale-in events and get CloudWatch metrics"
68
68
69
69
policy = jsonencode ({
70
70
Version = " 2012-10-17"
71
71
Statement = [
72
72
{
73
73
Effect = " Allow"
74
74
Action = [
75
- " autoscaling:SetInstanceProtection " ,
76
- " autoscaling:DescribeAutoScalingInstances "
75
+ " ecs:GetTaskProtection " ,
76
+ " ecs:UpdateTaskProtection "
77
77
]
78
78
Resource = " *"
79
79
},
You can’t perform that action at this time.
0 commit comments