quintilesims / layer0

Build, Manage, and Deploy Your Applications
Apache License 2.0
44 stars 20 forks source link

Ocemcm 11590 #664

Closed yjwx18 closed 3 years ago

yjwx18 commented 3 years ago

What does this pull request do? Introduced the following changes:

1: Removed the auto scaling code from layer0 api. Layer0 api no longer takes the responsibilities of scaling ecs instances for the environment. 2: Added the AWS auto scaling by using capacity providers. 3: Fixed the aws ecs service and task ARN format. 4: Added two parameters during the l0 environment creation for capacity provider. max_count and taget_cap_size. If dont specify the two parameters, it will use the ASG without CP.( Due to NO.1 , the max and min setting will not be change at runtime by layer0) 5: Added make build command in layer0 root folder. Regenerated mock file and decorator files. 6: Updated the corresponding test case.

How should this be tested? 1: Test the layer0 environment with/without "max_count ,taget_cap_size" specified. 2: Test destroy these environments.

Checklist

Unit tests

Smoke tests (if applicable)

closes # OCEMCM-10528 OCEMCM-10358 OCEMCM-11590