aws-cdk-lib 2.174.1__py3-none-any.whl → 2.175.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.174.1.jsii.tgz → aws-cdk-lib@2.175.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +164 -0
- aws_cdk/aws_apigatewayv2/__init__.py +248 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +6 -3
- aws_cdk/aws_autoscaling/__init__.py +8 -8
- aws_cdk/aws_certificatemanager/__init__.py +28 -0
- aws_cdk/aws_chatbot/__init__.py +28 -0
- aws_cdk/aws_cloudfront/__init__.py +92 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
- aws_cdk/aws_cloudwatch/__init__.py +146 -0
- aws_cdk/aws_codebuild/__init__.py +84 -0
- aws_cdk/aws_dynamodb/__init__.py +300 -0
- aws_cdk/aws_ec2/__init__.py +97 -0
- aws_cdk/aws_ecs/__init__.py +351 -110
- aws_cdk/aws_ecs_patterns/__init__.py +77 -42
- aws_cdk/aws_elasticloadbalancing/__init__.py +3 -6
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +732 -7
- aws_cdk/aws_elasticsearch/__init__.py +260 -0
- aws_cdk/aws_kinesis/__init__.py +324 -0
- aws_cdk/aws_kms/__init__.py +197 -0
- aws_cdk/aws_lambda/__init__.py +144 -0
- aws_cdk/aws_logs/__init__.py +58 -0
- aws_cdk/aws_opensearchservice/__init__.py +260 -0
- aws_cdk/aws_rds/__init__.py +384 -0
- aws_cdk/aws_sns/__init__.py +164 -0
- aws_cdk/aws_sqs/__init__.py +164 -0
- aws_cdk/aws_stepfunctions/__init__.py +288 -0
- aws_cdk/aws_synthetics/__init__.py +18 -0
- aws_cdk/cx_api/__init__.py +42 -0
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/RECORD +36 -36
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.174.1.dist-info → aws_cdk_lib-2.175.0.dist-info}/top_level.txt +0 -0
|
@@ -30,7 +30,8 @@ load_balanced_ecs_service = ecs_patterns.ApplicationLoadBalancedEc2Service(self,
|
|
|
30
30
|
command=["command"],
|
|
31
31
|
entry_point=["entry", "point"]
|
|
32
32
|
),
|
|
33
|
-
desired_count=2
|
|
33
|
+
desired_count=2,
|
|
34
|
+
min_healthy_percent=100
|
|
34
35
|
)
|
|
35
36
|
```
|
|
36
37
|
|
|
@@ -47,7 +48,8 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
47
48
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
48
49
|
command=["command"],
|
|
49
50
|
entry_point=["entry", "point"]
|
|
50
|
-
)
|
|
51
|
+
),
|
|
52
|
+
min_healthy_percent=100
|
|
51
53
|
)
|
|
52
54
|
|
|
53
55
|
load_balanced_fargate_service.target_group.configure_health_check(
|
|
@@ -142,7 +144,8 @@ load_balanced_ecs_service = ecs_patterns.NetworkLoadBalancedEc2Service(self, "Se
|
|
|
142
144
|
"TEST_ENVIRONMENT_VARIABLE2": "test environment variable 2 value"
|
|
143
145
|
}
|
|
144
146
|
),
|
|
145
|
-
desired_count=2
|
|
147
|
+
desired_count=2,
|
|
148
|
+
min_healthy_percent=100
|
|
146
149
|
)
|
|
147
150
|
```
|
|
148
151
|
|
|
@@ -157,7 +160,8 @@ load_balanced_fargate_service = ecs_patterns.NetworkLoadBalancedFargateService(s
|
|
|
157
160
|
cpu=512,
|
|
158
161
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
159
162
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
160
|
-
)
|
|
163
|
+
),
|
|
164
|
+
min_healthy_percent=100
|
|
161
165
|
)
|
|
162
166
|
```
|
|
163
167
|
|
|
@@ -264,7 +268,8 @@ queue_processing_ec2_service = ecs_patterns.QueueProcessingEc2Service(self, "Ser
|
|
|
264
268
|
"TEST_ENVIRONMENT_VARIABLE2": "test environment variable 2 value"
|
|
265
269
|
},
|
|
266
270
|
max_scaling_capacity=5,
|
|
267
|
-
container_name="test"
|
|
271
|
+
container_name="test",
|
|
272
|
+
min_healthy_percent=100
|
|
268
273
|
)
|
|
269
274
|
```
|
|
270
275
|
|
|
@@ -285,7 +290,8 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
285
290
|
"TEST_ENVIRONMENT_VARIABLE2": "test environment variable 2 value"
|
|
286
291
|
},
|
|
287
292
|
max_scaling_capacity=5,
|
|
288
|
-
container_name="test"
|
|
293
|
+
container_name="test",
|
|
294
|
+
min_healthy_percent=100
|
|
289
295
|
)
|
|
290
296
|
```
|
|
291
297
|
|
|
@@ -309,6 +315,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
309
315
|
},
|
|
310
316
|
max_scaling_capacity=5,
|
|
311
317
|
container_name="test",
|
|
318
|
+
min_healthy_percent=100,
|
|
312
319
|
disable_cpu_based_scaling=True
|
|
313
320
|
)
|
|
314
321
|
```
|
|
@@ -328,6 +335,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
328
335
|
environment={},
|
|
329
336
|
max_scaling_capacity=5,
|
|
330
337
|
container_name="test",
|
|
338
|
+
min_healthy_percent=100,
|
|
331
339
|
cpu_target_utilization_percent=90
|
|
332
340
|
)
|
|
333
341
|
```
|
|
@@ -391,6 +399,7 @@ certificate = Certificate.from_certificate_arn(self, "Cert", "arn:aws:acm:us-eas
|
|
|
391
399
|
load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "Service",
|
|
392
400
|
vpc=vpc,
|
|
393
401
|
cluster=cluster,
|
|
402
|
+
min_healthy_percent=100,
|
|
394
403
|
certificate=certificate,
|
|
395
404
|
ssl_policy=SslPolicy.RECOMMENDED,
|
|
396
405
|
domain_name="api.example.com",
|
|
@@ -414,6 +423,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
414
423
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
415
424
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
416
425
|
),
|
|
426
|
+
min_healthy_percent=100,
|
|
417
427
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
418
428
|
capacity_provider="FARGATE_SPOT",
|
|
419
429
|
weight=2,
|
|
@@ -439,7 +449,8 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
439
449
|
cpu=512,
|
|
440
450
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
441
451
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
442
|
-
)
|
|
452
|
+
),
|
|
453
|
+
min_healthy_percent=100
|
|
443
454
|
)
|
|
444
455
|
|
|
445
456
|
scalable_target = load_balanced_fargate_service.service.auto_scale_task_count(
|
|
@@ -470,7 +481,8 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
470
481
|
cpu=512,
|
|
471
482
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
472
483
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
473
|
-
)
|
|
484
|
+
),
|
|
485
|
+
min_healthy_percent=100
|
|
474
486
|
)
|
|
475
487
|
|
|
476
488
|
scalable_target = load_balanced_fargate_service.service.auto_scale_task_count(
|
|
@@ -500,6 +512,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
500
512
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
501
513
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
502
514
|
),
|
|
515
|
+
min_healthy_percent=100,
|
|
503
516
|
deployment_controller=ecs.DeploymentController(
|
|
504
517
|
type=ecs.DeploymentControllerType.CODE_DEPLOY
|
|
505
518
|
)
|
|
@@ -524,6 +537,7 @@ service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "Service",
|
|
|
524
537
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
525
538
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
526
539
|
),
|
|
540
|
+
min_healthy_percent=100,
|
|
527
541
|
circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True)
|
|
528
542
|
)
|
|
529
543
|
```
|
|
@@ -557,6 +571,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
557
571
|
vpc=vpc,
|
|
558
572
|
memory_limit_mi_b=512,
|
|
559
573
|
image=ecs.ContainerImage.from_registry("test"),
|
|
574
|
+
min_healthy_percent=100,
|
|
560
575
|
security_groups=[security_group],
|
|
561
576
|
task_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_ISOLATED)
|
|
562
577
|
)
|
|
@@ -571,6 +586,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
571
586
|
vpc=vpc,
|
|
572
587
|
memory_limit_mi_b=512,
|
|
573
588
|
image=ecs.ContainerImage.from_registry("test"),
|
|
589
|
+
min_healthy_percent=100,
|
|
574
590
|
assign_public_ip=True
|
|
575
591
|
)
|
|
576
592
|
```
|
|
@@ -584,6 +600,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
584
600
|
vpc=vpc,
|
|
585
601
|
memory_limit_mi_b=512,
|
|
586
602
|
image=ecs.ContainerImage.from_registry("test"),
|
|
603
|
+
min_healthy_percent=100,
|
|
587
604
|
max_receive_count=42,
|
|
588
605
|
retention_period=Duration.days(7),
|
|
589
606
|
visibility_timeout=Duration.minutes(5)
|
|
@@ -602,6 +619,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
602
619
|
vpc=vpc,
|
|
603
620
|
memory_limit_mi_b=512,
|
|
604
621
|
image=ecs.ContainerImage.from_registry("test"),
|
|
622
|
+
min_healthy_percent=100,
|
|
605
623
|
assign_public_ip=True,
|
|
606
624
|
cooldown=Duration.seconds(500)
|
|
607
625
|
)
|
|
@@ -618,6 +636,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
618
636
|
cluster=cluster,
|
|
619
637
|
memory_limit_mi_b=512,
|
|
620
638
|
image=ecs.ContainerImage.from_registry("test"),
|
|
639
|
+
min_healthy_percent=100,
|
|
621
640
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
622
641
|
capacity_provider="FARGATE_SPOT",
|
|
623
642
|
weight=2
|
|
@@ -639,6 +658,7 @@ queue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(se
|
|
|
639
658
|
vpc=vpc,
|
|
640
659
|
memory_limit_mi_b=512,
|
|
641
660
|
image=ecs.ContainerImage.from_registry("test"),
|
|
661
|
+
min_healthy_percent=100,
|
|
642
662
|
health_check=ecs.HealthCheck(
|
|
643
663
|
command=["CMD-SHELL", "curl -f http://localhost/ || exit 1"],
|
|
644
664
|
# the properties below are optional
|
|
@@ -672,6 +692,7 @@ queue_processing_ec2_service = ecs_patterns.QueueProcessingEc2Service(self, "Ser
|
|
|
672
692
|
cluster=cluster,
|
|
673
693
|
memory_limit_mi_b=512,
|
|
674
694
|
image=ecs.ContainerImage.from_registry("test"),
|
|
695
|
+
min_healthy_percent=100,
|
|
675
696
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
676
697
|
capacity_provider=capacity_provider.capacity_provider_name
|
|
677
698
|
)
|
|
@@ -692,6 +713,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
692
713
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
693
714
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
694
715
|
),
|
|
716
|
+
min_healthy_percent=100,
|
|
695
717
|
task_subnets=ec2.SubnetSelection(
|
|
696
718
|
subnets=[ec2.Subnet.from_subnet_id(self, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0")]
|
|
697
719
|
)
|
|
@@ -711,6 +733,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
711
733
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
712
734
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
713
735
|
),
|
|
736
|
+
min_healthy_percent=100,
|
|
714
737
|
idle_timeout=Duration.seconds(120)
|
|
715
738
|
)
|
|
716
739
|
```
|
|
@@ -875,6 +898,7 @@ application_load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalanced
|
|
|
875
898
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
876
899
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
877
900
|
),
|
|
901
|
+
min_healthy_percent=100,
|
|
878
902
|
runtime_platform=ecs.RuntimePlatform(
|
|
879
903
|
cpu_architecture=ecs.CpuArchitecture.ARM64,
|
|
880
904
|
operating_system_family=ecs.OperatingSystemFamily.LINUX
|
|
@@ -964,6 +988,7 @@ service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "Service",
|
|
|
964
988
|
cluster=cluster,
|
|
965
989
|
vpc=vpc,
|
|
966
990
|
desired_count=1,
|
|
991
|
+
min_healthy_percent=100,
|
|
967
992
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
968
993
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
|
|
969
994
|
docker_labels={
|
|
@@ -991,6 +1016,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
991
1016
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
992
1017
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
993
1018
|
),
|
|
1019
|
+
min_healthy_percent=100,
|
|
994
1020
|
task_subnets=ec2.SubnetSelection(
|
|
995
1021
|
subnets=[ec2.Subnet.from_subnet_id(self, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0")]
|
|
996
1022
|
),
|
|
@@ -1020,6 +1046,7 @@ load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateServi
|
|
|
1020
1046
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
1021
1047
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1022
1048
|
),
|
|
1049
|
+
min_healthy_percent=100,
|
|
1023
1050
|
enable_execute_command=True
|
|
1024
1051
|
)
|
|
1025
1052
|
```
|
|
@@ -1094,7 +1121,8 @@ application_load_balanced_fargate_service = ecs_patterns.ApplicationLoadBalanced
|
|
|
1094
1121
|
ephemeral_storage_gi_b=21,
|
|
1095
1122
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
1096
1123
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1097
|
-
)
|
|
1124
|
+
),
|
|
1125
|
+
min_healthy_percent=100
|
|
1098
1126
|
)
|
|
1099
1127
|
|
|
1100
1128
|
network_load_balanced_fargate_service = ecs_patterns.NetworkLoadBalancedFargateService(self, "NLBFargateServiceWithCustomEphemeralStorage",
|
|
@@ -1104,7 +1132,8 @@ network_load_balanced_fargate_service = ecs_patterns.NetworkLoadBalancedFargateS
|
|
|
1104
1132
|
ephemeral_storage_gi_b=200,
|
|
1105
1133
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1106
1134
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1107
|
-
)
|
|
1135
|
+
),
|
|
1136
|
+
min_healthy_percent=100
|
|
1108
1137
|
)
|
|
1109
1138
|
```
|
|
1110
1139
|
|
|
@@ -1120,6 +1149,7 @@ queue_processing_fargate_service = ecs_patterns.NetworkLoadBalancedFargateServic
|
|
|
1120
1149
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1121
1150
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1122
1151
|
),
|
|
1152
|
+
min_healthy_percent=100,
|
|
1123
1153
|
security_groups=[security_group]
|
|
1124
1154
|
)
|
|
1125
1155
|
```
|
|
@@ -1199,6 +1229,7 @@ service = ecs_patterns.ApplicationLoadBalancedFargateService(self, "myService",
|
|
|
1199
1229
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
1200
1230
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1201
1231
|
),
|
|
1232
|
+
min_healthy_percent=100,
|
|
1202
1233
|
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1203
1234
|
)
|
|
1204
1235
|
|
|
@@ -1207,6 +1238,7 @@ application_load_balanced_ec2_service = ecs_patterns.ApplicationLoadBalancedEc2S
|
|
|
1207
1238
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
1208
1239
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1209
1240
|
),
|
|
1241
|
+
min_healthy_percent=100,
|
|
1210
1242
|
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1211
1243
|
)
|
|
1212
1244
|
```
|
|
@@ -1230,6 +1262,7 @@ network_loadbalanced_fargate_service = ecs_patterns.NetworkLoadBalancedFargateSe
|
|
|
1230
1262
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1231
1263
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1232
1264
|
),
|
|
1265
|
+
min_healthy_percent=100,
|
|
1233
1266
|
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1234
1267
|
)
|
|
1235
1268
|
|
|
@@ -1238,6 +1271,7 @@ network_loadbalanced_ec2_service = ecs_patterns.NetworkLoadBalancedEc2Service(se
|
|
|
1238
1271
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
1239
1272
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
1240
1273
|
),
|
|
1274
|
+
min_healthy_percent=100,
|
|
1241
1275
|
ip_address_type=elbv2.IpAddressType.DUAL_STACK
|
|
1242
1276
|
)
|
|
1243
1277
|
```
|
|
@@ -2426,6 +2460,7 @@ class ApplicationLoadBalancedTaskImageOptions:
|
|
|
2426
2460
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
2427
2461
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
2428
2462
|
),
|
|
2463
|
+
min_healthy_percent=100,
|
|
2429
2464
|
task_subnets=ec2.SubnetSelection(
|
|
2430
2465
|
subnets=[ec2.Subnet.from_subnet_id(self, "subnet", "VpcISOLATEDSubnet1Subnet80F07FA0")]
|
|
2431
2466
|
),
|
|
@@ -7475,7 +7510,8 @@ class ApplicationLoadBalancedEc2Service(
|
|
|
7475
7510
|
command=["command"],
|
|
7476
7511
|
entry_point=["entry", "point"]
|
|
7477
7512
|
),
|
|
7478
|
-
desired_count=2
|
|
7513
|
+
desired_count=2,
|
|
7514
|
+
min_healthy_percent=100
|
|
7479
7515
|
)
|
|
7480
7516
|
'''
|
|
7481
7517
|
|
|
@@ -7766,7 +7802,8 @@ class ApplicationLoadBalancedEc2ServiceProps(ApplicationLoadBalancedServiceBaseP
|
|
|
7766
7802
|
command=["command"],
|
|
7767
7803
|
entry_point=["entry", "point"]
|
|
7768
7804
|
),
|
|
7769
|
-
desired_count=2
|
|
7805
|
+
desired_count=2,
|
|
7806
|
+
min_healthy_percent=100
|
|
7770
7807
|
)
|
|
7771
7808
|
'''
|
|
7772
7809
|
if isinstance(circuit_breaker, dict):
|
|
@@ -8350,7 +8387,8 @@ class ApplicationLoadBalancedFargateService(
|
|
|
8350
8387
|
cpu=512,
|
|
8351
8388
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
8352
8389
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
8353
|
-
)
|
|
8390
|
+
),
|
|
8391
|
+
min_healthy_percent=100
|
|
8354
8392
|
)
|
|
8355
8393
|
|
|
8356
8394
|
scalable_target = load_balanced_fargate_service.service.auto_scale_task_count(
|
|
@@ -8684,7 +8722,8 @@ class ApplicationLoadBalancedFargateServiceProps(
|
|
|
8684
8722
|
cpu=512,
|
|
8685
8723
|
task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(
|
|
8686
8724
|
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
8687
|
-
)
|
|
8725
|
+
),
|
|
8726
|
+
min_healthy_percent=100
|
|
8688
8727
|
)
|
|
8689
8728
|
|
|
8690
8729
|
scalable_target = load_balanced_fargate_service.service.auto_scale_task_count(
|
|
@@ -11214,21 +11253,17 @@ class NetworkLoadBalancedFargateService(
|
|
|
11214
11253
|
|
|
11215
11254
|
Example::
|
|
11216
11255
|
|
|
11217
|
-
|
|
11218
|
-
|
|
11256
|
+
# vpc: ec2.Vpc
|
|
11257
|
+
# security_group: ec2.SecurityGroup
|
|
11219
11258
|
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
# It is configured to port 4443 here
|
|
11224
|
-
listener_port=4443,
|
|
11225
|
-
listener_certificate=certificate,
|
|
11259
|
+
queue_processing_fargate_service = ecs_patterns.NetworkLoadBalancedFargateService(self, "Service",
|
|
11260
|
+
vpc=vpc,
|
|
11261
|
+
memory_limit_mi_b=512,
|
|
11226
11262
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
11227
|
-
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
)
|
|
11263
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
11264
|
+
),
|
|
11265
|
+
min_healthy_percent=100,
|
|
11266
|
+
security_groups=[security_group]
|
|
11232
11267
|
)
|
|
11233
11268
|
'''
|
|
11234
11269
|
|
|
@@ -11483,21 +11518,17 @@ class NetworkLoadBalancedFargateServiceProps(
|
|
|
11483
11518
|
|
|
11484
11519
|
Example::
|
|
11485
11520
|
|
|
11486
|
-
|
|
11487
|
-
|
|
11521
|
+
# vpc: ec2.Vpc
|
|
11522
|
+
# security_group: ec2.SecurityGroup
|
|
11488
11523
|
|
|
11489
|
-
|
|
11490
|
-
|
|
11491
|
-
|
|
11492
|
-
# It is configured to port 4443 here
|
|
11493
|
-
listener_port=4443,
|
|
11494
|
-
listener_certificate=certificate,
|
|
11524
|
+
queue_processing_fargate_service = ecs_patterns.NetworkLoadBalancedFargateService(self, "Service",
|
|
11525
|
+
vpc=vpc,
|
|
11526
|
+
memory_limit_mi_b=512,
|
|
11495
11527
|
task_image_options=ecsPatterns.NetworkLoadBalancedTaskImageOptions(
|
|
11496
|
-
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
)
|
|
11528
|
+
image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample")
|
|
11529
|
+
),
|
|
11530
|
+
min_healthy_percent=100,
|
|
11531
|
+
security_groups=[security_group]
|
|
11501
11532
|
)
|
|
11502
11533
|
'''
|
|
11503
11534
|
if isinstance(circuit_breaker, dict):
|
|
@@ -13136,7 +13167,8 @@ class QueueProcessingEc2Service(
|
|
|
13136
13167
|
"TEST_ENVIRONMENT_VARIABLE2": "test environment variable 2 value"
|
|
13137
13168
|
},
|
|
13138
13169
|
max_scaling_capacity=5,
|
|
13139
|
-
container_name="test"
|
|
13170
|
+
container_name="test",
|
|
13171
|
+
min_healthy_percent=100
|
|
13140
13172
|
)
|
|
13141
13173
|
'''
|
|
13142
13174
|
|
|
@@ -13415,7 +13447,8 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
13415
13447
|
"TEST_ENVIRONMENT_VARIABLE2": "test environment variable 2 value"
|
|
13416
13448
|
},
|
|
13417
13449
|
max_scaling_capacity=5,
|
|
13418
|
-
container_name="test"
|
|
13450
|
+
container_name="test",
|
|
13451
|
+
min_healthy_percent=100
|
|
13419
13452
|
)
|
|
13420
13453
|
'''
|
|
13421
13454
|
if isinstance(circuit_breaker, dict):
|
|
@@ -13970,6 +14003,7 @@ class QueueProcessingFargateService(
|
|
|
13970
14003
|
cluster=cluster,
|
|
13971
14004
|
memory_limit_mi_b=512,
|
|
13972
14005
|
image=ecs.ContainerImage.from_registry("test"),
|
|
14006
|
+
min_healthy_percent=100,
|
|
13973
14007
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
13974
14008
|
capacity_provider="FARGATE_SPOT",
|
|
13975
14009
|
weight=2
|
|
@@ -14277,6 +14311,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
14277
14311
|
cluster=cluster,
|
|
14278
14312
|
memory_limit_mi_b=512,
|
|
14279
14313
|
image=ecs.ContainerImage.from_registry("test"),
|
|
14314
|
+
min_healthy_percent=100,
|
|
14280
14315
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
14281
14316
|
capacity_provider="FARGATE_SPOT",
|
|
14282
14317
|
weight=2
|
|
@@ -2170,7 +2170,7 @@ class LoadBalancer(
|
|
|
2170
2170
|
# task_definition: ecs.TaskDefinition
|
|
2171
2171
|
# vpc: ec2.Vpc
|
|
2172
2172
|
|
|
2173
|
-
service = ecs.Ec2Service(self, "Service", cluster=cluster, task_definition=task_definition)
|
|
2173
|
+
service = ecs.Ec2Service(self, "Service", cluster=cluster, task_definition=task_definition, min_healthy_percent=100)
|
|
2174
2174
|
|
|
2175
2175
|
lb = elb.LoadBalancer(self, "LB", vpc=vpc)
|
|
2176
2176
|
lb.add_listener(external_port=80)
|
|
@@ -2542,14 +2542,11 @@ class LoadBalancerProps:
|
|
|
2542
2542
|
# task_definition: ecs.TaskDefinition
|
|
2543
2543
|
# vpc: ec2.Vpc
|
|
2544
2544
|
|
|
2545
|
-
service = ecs.Ec2Service(self, "Service", cluster=cluster, task_definition=task_definition)
|
|
2545
|
+
service = ecs.Ec2Service(self, "Service", cluster=cluster, task_definition=task_definition, min_healthy_percent=100)
|
|
2546
2546
|
|
|
2547
2547
|
lb = elb.LoadBalancer(self, "LB", vpc=vpc)
|
|
2548
2548
|
lb.add_listener(external_port=80)
|
|
2549
|
-
lb.add_target(service
|
|
2550
|
-
container_name="MyContainer",
|
|
2551
|
-
container_port=80
|
|
2552
|
-
))
|
|
2549
|
+
lb.add_target(service)
|
|
2553
2550
|
'''
|
|
2554
2551
|
if isinstance(access_logging_policy, dict):
|
|
2555
2552
|
access_logging_policy = CfnLoadBalancer.AccessLoggingPolicyProperty(**access_logging_policy)
|