معرفی شرکت ها


cdklabs.ecs-codedeploy-0.0.99


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

CDK Constructs for performing ECS Deployments with CodeDeploy
ویژگی مقدار
سیستم عامل -
نام فایل cdklabs.ecs-codedeploy-0.0.99
نام cdklabs.ecs-codedeploy
نسخه کتابخانه 0.0.99
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Amazon Web Services
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/cdklabs/cdk-ecs-codedeploy
آدرس اینترنتی https://pypi.org/project/cdklabs.ecs-codedeploy/
مجوز Apache-2.0
# CDK ECS CodeDeploy [![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg)](https://constructs.dev/packages/@cdklabs/cdk-ecs-codedeploy) [![npm version](https://badge.fury.io/js/@cdklabs%2Fcdk-ecs-codedeploy.svg)](https://badge.fury.io/js/@cdklabs%2Fcdk-ecs-codedeploy) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdk-ecs-codedeploy/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdk-ecs-codedeploy) [![PyPI version](https://badge.fury.io/py/cdklabs.ecs-codedeploy.svg)](https://badge.fury.io/py/cdklabs.ecs-codedeploy) [![NuGet version](https://badge.fury.io/nu/Cdklabs.CdkEcsCodeDeploy.svg)](https://badge.fury.io/nu/Cdklabs.CdkEcsCodeDeploy) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cdklabs/cdk-ecs-codedeploy) [![Mergify](https://img.shields.io/endpoint.svg?url=https://api.mergify.com/badges/cdklabs/cdk-ecs-codedeploy&style=flat)](https://mergify.io) This project contains CDK constructs to create CodeDeploy ECS deployments. ## Installation <details><summary><strong>TypeScript</strong></summary> ```bash yarn add @cdklabs/cdk-ecs-codedeploy ``` </details><details><summary><strong>Java</strong></summary> See https://mvnrepository.com/artifact/io.github.cdklabs/cdk-ecs-codedeploy </details><details><summary><strong>Python</strong></summary> See https://pypi.org/project/cdklabs.ecs-codedeploy/ </details><details><summary><strong>C#</strong></summary> See https://www.nuget.org/packages/Cdklabs.CdkEcsCodeDeploy/ </details> ### Deployments CodeDeploy for ECS can manage the deployment of new task definitions to ECS services. Only 1 deployment construct can be defined for a given EcsDeploymentGroup. ```python declare const deploymentGroup: codeDeploy.IEcsDeploymentGroup; declare const taskDefinition: ecs.ITaskDefinition; new EcsDeployment({ deploymentGroup, targetService: { taskDefinition, containerName: 'mycontainer', containerPort: 80, }, }); ``` The deployment will use the AutoRollbackConfig for the EcsDeploymentGroup unless it is overridden in the deployment: ```python new EcsDeployment({ deploymentGroup, targetService: { taskDefinition, containerName: 'mycontainer', containerPort: 80, }, autoRollback: { failedDeployment: true, deploymentInAlarm: true, stoppedDeployment: false, }, }); ``` By default, the deployment will timeout after 30 minutes. The timeout value can be overridden: ```python new EcsDeployment({ deploymentGroup, targetService: { taskDefinition, containerName: 'mycontainer', containerPort: 80, }, timeout: Duration.minutes(60), }); ``` ### API Canaries CodeDeploy can leverage Cloudwatch Alarms to trigger automatic rollbacks. The `ApiCanary` construct simplifies the process for creating CloudWatch Synthetics Canaries to monitor APIs. The following code demonstrates a canary that monitors https://xkcd.com/908/info.0.json and checks the JSON response to assert that `safe_title` has the value of `'The Cloud'`. ```python const canary = new ApiCanary(stack, 'Canary', { baseUrl: 'https://xkcd.com', durationAlarmThreshold: Duration.seconds(5), threadCount: 5, steps: [ { name: 'info', path: '/908/info.0.json', jmesPath: 'safe_title', expectedValue: 'The Cloud', }, ], }); ``` ### Application Load Balanced CodeDeployed Fargate Service An L3 construct named `ApplicationLoadBalancedCodeDeployedFargateService` extends [ApplicationLoadBalancedFargateService](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs_patterns.ApplicationLoadBalancedFargateService.html) and adds support for deploying new versions of the service with AWS CodeDeploy. Additionally, an Amazon CloudWatch Synthetic canary is created via the `ApiCanary` construct and is monitored by the CodeDeploy deployment to trigger rollback if the canary begins to alarm. ```python declare const cluster: ecs.ICluster; declare const image: ecs.ContainerImage; const service = new ApplicationLoadBalancedCodeDeployedFargateService(stack, 'Service', { cluster, taskImageOptions: { image, }, apiTestSteps: [{ name: 'health', path: '/health', jmesPath: 'status', expectedValue: 'ok', }], }); ``` ## Local Development ```bash yarn install yarn build yarn test ``` To run an integration test and update the snapshot, run: ```bash yarn integ:ecs-deployment:deploy ``` To recreate snapshots for integration tests, run: ```bash yarn integ:snapshot-all ``` ## Security See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. ## License This project is licensed under the Apache-2.0 License.


نیازمندی

مقدار نام
<3.0.0,>=2.71.0 aws-cdk-lib
==2.71.0.a0 aws-cdk.aws-synthetics-alpha
<11.0.0,>=10.0.5 constructs
<2.0.0,>=1.80.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl cdklabs.ecs-codedeploy-0.0.99:

    pip install cdklabs.ecs-codedeploy-0.0.99.whl


نصب پکیج tar.gz cdklabs.ecs-codedeploy-0.0.99:

    pip install cdklabs.ecs-codedeploy-0.0.99.tar.gz