Slide 69
Slide 69 text
休日・夜間の停止(ECS)設定例
{
"ScalableTargets": [
{
"ServiceNamespace": "ecs",
"ResourceId": "service/******",
"ScalableDimension": "ecs:service:DesiredCount",
"MinCapacity": 0,
"MaxCapacity": 0,
"RoleARN":
"arn:aws:iam::************:role/aws-service-role/ecs.applicati
on-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoS
caling_ECSService",
"CreationTime": "2023-06-14T18:26:19.446000+09:00",
"SuspendedState": {
"DynamicScalingInSuspended": false,
"DynamicScalingOutSuspended": false,
"ScheduledScalingSuspended": false
},
"ScalableTargetARN":
"arn:aws:application-autoscaling:ap-northeast-1:******"
},
{
"ScheduledActions": [
{
"ScheduledActionName": "claim-internal-ecs-start",
"ScheduledActionARN":
"arn:aws:autoscaling:ap-northeast-1:******",
"ServiceNamespace": "ecs",
"Schedule": "cron(00 22 ? * SUN-THU *)",
"ResourceId": "service/******",
"ScalableDimension": "ecs:service:DesiredCount",
"ScalableTargetAction": {
"MinCapacity": 1,
"MaxCapacity": 2
},
"CreationTime": "2023-06-14T18:01:04.088000+09:00"
},