@cdklabs/cdk-ecs-codedeploy 0.0.19 → 0.0.21
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.
- package/.jsii +37 -37
- package/API.md +11 -11
- package/README.md +6 -6
- package/assets/ecs-deployment-provider/is-complete.lambda/index.js +20 -16
- package/assets/ecs-deployment-provider/on-event.lambda/index.js +20 -16
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.d.ts +3 -3
- package/lib/ecs-deployment/index.js +5 -3
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +4 -5
- package/node_modules/@aws-sdk/client-codedeploy/package.json +6 -5
- package/node_modules/@aws-sdk/client-sso/package.json +4 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -3
- package/node_modules/@aws-sdk/client-sts/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/package.json +8 -8
- package/cdk.context.json +0 -8
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"bundled": {
|
|
11
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
11
|
+
"@aws-sdk/client-codedeploy": "^3.241.0",
|
|
12
12
|
"jmespath": "^0.16.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
@@ -3338,7 +3338,7 @@
|
|
|
3338
3338
|
},
|
|
3339
3339
|
"name": "@cdklabs/cdk-ecs-codedeploy",
|
|
3340
3340
|
"readme": {
|
|
3341
|
-
"markdown": "# CDK ECS CodeDeploy\n\n[](https://constructs.dev/packages/@cdklabs/cdk-ecs-codedeploy)\n[](https://badge.fury.io/js/@cdklabs%2Fcdk-ecs-codedeploy)\n[](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdk-ecs-codedeploy)\n[](https://badge.fury.io/py/cdklabs.ecs-codedeploy)\n[](https://badge.fury.io/nu/Cdklabs.CdkEcsCodeDeploy)\n[](https://gitpod.io/#https://github.com/cdklabs/cdk-ecs-codedeploy)\n[](https://mergify.io)\n\nThis project contains CDK constructs to create CodeDeploy ECS deployments.\n\n## Installation\n\n<details><summary><strong>TypeScript</strong></summary>\n\n```bash\nyarn add @cdklabs/cdk-ecs-codedeploy\n```\n\n</details>\n\n<details><summary><strong>Java</strong></summary>\n\nSee https://mvnrepository.com/artifact/io.github.cdklabs/cdk-ecs-codedeploy\n</details>\n\n<details><summary><strong>Python</strong></summary>\n\nSee https://pypi.org/project/cdklabs.ecs-codedeploy/\n</details>\n\n<details><summary><strong>C#</strong></summary>\n\nSee https://www.nuget.org/packages/Cdklabs.CdkEcsCodeDeploy/\n</details>\n\n### Deployments\n\nCodeDeploy for ECS can manage the deployment of new task definitions to ECS services. Only 1 deployment construct can be defined for a given EcsDeploymentGroup.\n\n```ts\ndeclare const deploymentGroup: codeDeploy.IEcsDeploymentGroup;\ndeclare const taskDefinition: ecs.ITaskDefinition;\n\nnew EcsDeployment({\n deploymentGroup,\n
|
|
3341
|
+
"markdown": "# CDK ECS CodeDeploy\n\n[](https://constructs.dev/packages/@cdklabs/cdk-ecs-codedeploy)\n[](https://badge.fury.io/js/@cdklabs%2Fcdk-ecs-codedeploy)\n[](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdk-ecs-codedeploy)\n[](https://badge.fury.io/py/cdklabs.ecs-codedeploy)\n[](https://badge.fury.io/nu/Cdklabs.CdkEcsCodeDeploy)\n[](https://gitpod.io/#https://github.com/cdklabs/cdk-ecs-codedeploy)\n[](https://mergify.io)\n\nThis project contains CDK constructs to create CodeDeploy ECS deployments.\n\n## Installation\n\n<details><summary><strong>TypeScript</strong></summary>\n\n```bash\nyarn add @cdklabs/cdk-ecs-codedeploy\n```\n\n</details>\n\n<details><summary><strong>Java</strong></summary>\n\nSee https://mvnrepository.com/artifact/io.github.cdklabs/cdk-ecs-codedeploy\n</details>\n\n<details><summary><strong>Python</strong></summary>\n\nSee https://pypi.org/project/cdklabs.ecs-codedeploy/\n</details>\n\n<details><summary><strong>C#</strong></summary>\n\nSee https://www.nuget.org/packages/Cdklabs.CdkEcsCodeDeploy/\n</details>\n\n### Deployments\n\nCodeDeploy for ECS can manage the deployment of new task definitions to ECS services. Only 1 deployment construct can be defined for a given EcsDeploymentGroup.\n\n```ts\ndeclare const deploymentGroup: codeDeploy.IEcsDeploymentGroup;\ndeclare const taskDefinition: ecs.ITaskDefinition;\n\nnew EcsDeployment({\n deploymentGroup,\n targetService: {\n taskDefinition,\n containerName: 'mycontainer',\n containerPort: 80,\n },\n});\n```\n\nThe deployment will use the AutoRollbackConfig for the EcsDeploymentGroup unless it is overridden in the deployment:\n\n```ts\nnew EcsDeployment({\n deploymentGroup,\n targetService: {\n taskDefinition,\n containerName: 'mycontainer',\n containerPort: 80,\n },\n autoRollback: {\n failedDeployment: true,\n deploymentInAlarm: true,\n stoppedDeployment: false,\n },\n});\n```\n\nBy default, the deployment will timeout after 30 minutes. The timeout value can be overridden:\n\n```ts\nnew EcsDeployment({\n deploymentGroup,\n targetService: {\n taskDefinition,\n containerName: 'mycontainer',\n containerPort: 80,\n },\n timeout: Duration.minutes(60),\n});\n```\n\n### API Canaries\n\nCodeDeploy 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'`.\n\n```ts\nconst canary = new ApiCanary(stack, 'Canary', {\n baseUrl: 'https://xkcd.com',\n durationAlarmThreshold: Duration.seconds(5),\n threadCount: 5,\n steps: [\n {\n name: 'info',\n path: '/908/info.0.json',\n jmesPath: 'safe_title',\n expectedValue: 'The Cloud',\n },\n ],\n});\n```\n\n### Application Load Balanced CodeDeployed Fargate Service\n\nAn 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.\n\n```ts\ndeclare const cluster: ecs.ICluster;\ndeclare const image: ecs.ContainerImage;\nconst service = new ApplicationLoadBalancedCodeDeployedFargateService(stack, 'Service', {\n cluster,\n taskImageOptions: {\n image,\n },\n apiTestSteps: [{\n name: 'health',\n path: '/health',\n jmesPath: 'status',\n expectedValue: 'ok',\n }],\n});\n```\n\n## Local Development\n\n```bash\nyarn install\nyarn build\nyarn test\n```\n\nTo run an integration test and update the snapshot, run:\n\n```bash\nyarn integ:ecs-deployment:deploy\n```\n\nTo recreate snapshots for integration tests, run:\n\n```bash\nyarn integ:snapshot-all\n```\n\n## Security\n\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## License\n\nThis project is licensed under the Apache-2.0 License.\n"
|
|
3342
3342
|
},
|
|
3343
3343
|
"repository": {
|
|
3344
3344
|
"type": "git",
|
|
@@ -3931,7 +3931,7 @@
|
|
|
3931
3931
|
},
|
|
3932
3932
|
"locationInModule": {
|
|
3933
3933
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
3934
|
-
"line":
|
|
3934
|
+
"line": 150
|
|
3935
3935
|
},
|
|
3936
3936
|
"parameters": [
|
|
3937
3937
|
{
|
|
@@ -3957,7 +3957,7 @@
|
|
|
3957
3957
|
"kind": "class",
|
|
3958
3958
|
"locationInModule": {
|
|
3959
3959
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
3960
|
-
"line":
|
|
3960
|
+
"line": 106
|
|
3961
3961
|
},
|
|
3962
3962
|
"methods": [
|
|
3963
3963
|
{
|
|
@@ -3967,7 +3967,7 @@
|
|
|
3967
3967
|
},
|
|
3968
3968
|
"locationInModule": {
|
|
3969
3969
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
3970
|
-
"line":
|
|
3970
|
+
"line": 269
|
|
3971
3971
|
},
|
|
3972
3972
|
"name": "addServiceAsTarget",
|
|
3973
3973
|
"overrides": "aws-cdk-lib.aws_ecs_patterns.ApplicationLoadBalancedServiceBase",
|
|
@@ -3991,7 +3991,7 @@
|
|
|
3991
3991
|
},
|
|
3992
3992
|
"locationInModule": {
|
|
3993
3993
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
3994
|
-
"line":
|
|
3994
|
+
"line": 130
|
|
3995
3995
|
},
|
|
3996
3996
|
"name": "accessLogBucket",
|
|
3997
3997
|
"type": {
|
|
@@ -4005,7 +4005,7 @@
|
|
|
4005
4005
|
},
|
|
4006
4006
|
"locationInModule": {
|
|
4007
4007
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4008
|
-
"line":
|
|
4008
|
+
"line": 135
|
|
4009
4009
|
},
|
|
4010
4010
|
"name": "application",
|
|
4011
4011
|
"type": {
|
|
@@ -4019,7 +4019,7 @@
|
|
|
4019
4019
|
},
|
|
4020
4020
|
"locationInModule": {
|
|
4021
4021
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4022
|
-
"line":
|
|
4022
|
+
"line": 145
|
|
4023
4023
|
},
|
|
4024
4024
|
"name": "deployment",
|
|
4025
4025
|
"type": {
|
|
@@ -4033,7 +4033,7 @@
|
|
|
4033
4033
|
},
|
|
4034
4034
|
"locationInModule": {
|
|
4035
4035
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4036
|
-
"line":
|
|
4036
|
+
"line": 140
|
|
4037
4037
|
},
|
|
4038
4038
|
"name": "deploymentGroup",
|
|
4039
4039
|
"type": {
|
|
@@ -4047,7 +4047,7 @@
|
|
|
4047
4047
|
},
|
|
4048
4048
|
"locationInModule": {
|
|
4049
4049
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4050
|
-
"line":
|
|
4050
|
+
"line": 125
|
|
4051
4051
|
},
|
|
4052
4052
|
"name": "greenTargetGroup",
|
|
4053
4053
|
"type": {
|
|
@@ -4061,7 +4061,7 @@
|
|
|
4061
4061
|
},
|
|
4062
4062
|
"locationInModule": {
|
|
4063
4063
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4064
|
-
"line":
|
|
4064
|
+
"line": 110
|
|
4065
4065
|
},
|
|
4066
4066
|
"name": "healthAlarm",
|
|
4067
4067
|
"type": {
|
|
@@ -4075,7 +4075,7 @@
|
|
|
4075
4075
|
},
|
|
4076
4076
|
"locationInModule": {
|
|
4077
4077
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4078
|
-
"line":
|
|
4078
|
+
"line": 120
|
|
4079
4079
|
},
|
|
4080
4080
|
"name": "testListener",
|
|
4081
4081
|
"type": {
|
|
@@ -4089,7 +4089,7 @@
|
|
|
4089
4089
|
},
|
|
4090
4090
|
"locationInModule": {
|
|
4091
4091
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4092
|
-
"line":
|
|
4092
|
+
"line": 115
|
|
4093
4093
|
},
|
|
4094
4094
|
"name": "apiCanary",
|
|
4095
4095
|
"optional": true,
|
|
@@ -4114,7 +4114,7 @@
|
|
|
4114
4114
|
"kind": "interface",
|
|
4115
4115
|
"locationInModule": {
|
|
4116
4116
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4117
|
-
"line":
|
|
4117
|
+
"line": 16
|
|
4118
4118
|
},
|
|
4119
4119
|
"name": "ApplicationLoadBalancedCodeDeployedFargateServiceProps",
|
|
4120
4120
|
"properties": [
|
|
@@ -4128,7 +4128,7 @@
|
|
|
4128
4128
|
"immutable": true,
|
|
4129
4129
|
"locationInModule": {
|
|
4130
4130
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4131
|
-
"line":
|
|
4131
|
+
"line": 58
|
|
4132
4132
|
},
|
|
4133
4133
|
"name": "accessLogBucket",
|
|
4134
4134
|
"optional": true,
|
|
@@ -4146,7 +4146,7 @@
|
|
|
4146
4146
|
"immutable": true,
|
|
4147
4147
|
"locationInModule": {
|
|
4148
4148
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4149
|
-
"line":
|
|
4149
|
+
"line": 65
|
|
4150
4150
|
},
|
|
4151
4151
|
"name": "accessLogPrefix",
|
|
4152
4152
|
"optional": true,
|
|
@@ -4164,7 +4164,7 @@
|
|
|
4164
4164
|
"immutable": true,
|
|
4165
4165
|
"locationInModule": {
|
|
4166
4166
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4167
|
-
"line":
|
|
4167
|
+
"line": 86
|
|
4168
4168
|
},
|
|
4169
4169
|
"name": "apiCanarySchedule",
|
|
4170
4170
|
"optional": true,
|
|
@@ -4182,7 +4182,7 @@
|
|
|
4182
4182
|
"immutable": true,
|
|
4183
4183
|
"locationInModule": {
|
|
4184
4184
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4185
|
-
"line":
|
|
4185
|
+
"line": 79
|
|
4186
4186
|
},
|
|
4187
4187
|
"name": "apiCanaryThreadCount",
|
|
4188
4188
|
"optional": true,
|
|
@@ -4200,7 +4200,7 @@
|
|
|
4200
4200
|
"immutable": true,
|
|
4201
4201
|
"locationInModule": {
|
|
4202
4202
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4203
|
-
"line":
|
|
4203
|
+
"line": 93
|
|
4204
4204
|
},
|
|
4205
4205
|
"name": "apiCanaryTimeout",
|
|
4206
4206
|
"optional": true,
|
|
@@ -4218,7 +4218,7 @@
|
|
|
4218
4218
|
"immutable": true,
|
|
4219
4219
|
"locationInModule": {
|
|
4220
4220
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4221
|
-
"line":
|
|
4221
|
+
"line": 100
|
|
4222
4222
|
},
|
|
4223
4223
|
"name": "apiTestSteps",
|
|
4224
4224
|
"optional": true,
|
|
@@ -4241,7 +4241,7 @@
|
|
|
4241
4241
|
"immutable": true,
|
|
4242
4242
|
"locationInModule": {
|
|
4243
4243
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4244
|
-
"line":
|
|
4244
|
+
"line": 36
|
|
4245
4245
|
},
|
|
4246
4246
|
"name": "deploymentConfig",
|
|
4247
4247
|
"optional": true,
|
|
@@ -4259,7 +4259,7 @@
|
|
|
4259
4259
|
"immutable": true,
|
|
4260
4260
|
"locationInModule": {
|
|
4261
4261
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4262
|
-
"line":
|
|
4262
|
+
"line": 22
|
|
4263
4263
|
},
|
|
4264
4264
|
"name": "deploymentTimeout",
|
|
4265
4265
|
"optional": true,
|
|
@@ -4277,7 +4277,7 @@
|
|
|
4277
4277
|
"immutable": true,
|
|
4278
4278
|
"locationInModule": {
|
|
4279
4279
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4280
|
-
"line":
|
|
4280
|
+
"line": 44
|
|
4281
4281
|
},
|
|
4282
4282
|
"name": "deregistrationDelay",
|
|
4283
4283
|
"optional": true,
|
|
@@ -4295,7 +4295,7 @@
|
|
|
4295
4295
|
"immutable": true,
|
|
4296
4296
|
"locationInModule": {
|
|
4297
4297
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4298
|
-
"line":
|
|
4298
|
+
"line": 51
|
|
4299
4299
|
},
|
|
4300
4300
|
"name": "healthCheck",
|
|
4301
4301
|
"optional": true,
|
|
@@ -4313,7 +4313,7 @@
|
|
|
4313
4313
|
"immutable": true,
|
|
4314
4314
|
"locationInModule": {
|
|
4315
4315
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4316
|
-
"line":
|
|
4316
|
+
"line": 72
|
|
4317
4317
|
},
|
|
4318
4318
|
"name": "responseTimeAlarmThreshold",
|
|
4319
4319
|
"optional": true,
|
|
@@ -4331,7 +4331,7 @@
|
|
|
4331
4331
|
"immutable": true,
|
|
4332
4332
|
"locationInModule": {
|
|
4333
4333
|
"filename": "src/ecs-patterns/application-load-balanced-codedeployed-fargate-service.ts",
|
|
4334
|
-
"line":
|
|
4334
|
+
"line": 29
|
|
4335
4335
|
},
|
|
4336
4336
|
"name": "terminationWaitTime",
|
|
4337
4337
|
"optional": true,
|
|
@@ -4549,34 +4549,34 @@
|
|
|
4549
4549
|
{
|
|
4550
4550
|
"abstract": true,
|
|
4551
4551
|
"docs": {
|
|
4552
|
-
"remarks": "see: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs",
|
|
4553
4552
|
"stability": "experimental",
|
|
4554
|
-
"summary": "The
|
|
4553
|
+
"summary": "The deployment group to target for this deployment."
|
|
4555
4554
|
},
|
|
4556
4555
|
"immutable": true,
|
|
4557
4556
|
"locationInModule": {
|
|
4558
4557
|
"filename": "src/ecs-deployment/index.ts",
|
|
4559
|
-
"line":
|
|
4558
|
+
"line": 14
|
|
4560
4559
|
},
|
|
4561
|
-
"name": "
|
|
4560
|
+
"name": "deploymentGroup",
|
|
4562
4561
|
"type": {
|
|
4563
|
-
"fqn": "
|
|
4562
|
+
"fqn": "aws-cdk-lib.aws_codedeploy.IEcsDeploymentGroup"
|
|
4564
4563
|
}
|
|
4565
4564
|
},
|
|
4566
4565
|
{
|
|
4567
4566
|
"abstract": true,
|
|
4568
4567
|
"docs": {
|
|
4568
|
+
"remarks": "see: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs",
|
|
4569
4569
|
"stability": "experimental",
|
|
4570
|
-
"summary": "The
|
|
4570
|
+
"summary": "The ECS service to target for the deployment."
|
|
4571
4571
|
},
|
|
4572
4572
|
"immutable": true,
|
|
4573
4573
|
"locationInModule": {
|
|
4574
4574
|
"filename": "src/ecs-deployment/index.ts",
|
|
4575
|
-
"line":
|
|
4575
|
+
"line": 21
|
|
4576
4576
|
},
|
|
4577
|
-
"name": "
|
|
4577
|
+
"name": "targetService",
|
|
4578
4578
|
"type": {
|
|
4579
|
-
"fqn": "
|
|
4579
|
+
"fqn": "@cdklabs/cdk-ecs-codedeploy.TargetService"
|
|
4580
4580
|
}
|
|
4581
4581
|
},
|
|
4582
4582
|
{
|
|
@@ -4765,6 +4765,6 @@
|
|
|
4765
4765
|
"symbolId": "src/ecs-appspec/index:TargetService"
|
|
4766
4766
|
}
|
|
4767
4767
|
},
|
|
4768
|
-
"version": "0.0.
|
|
4769
|
-
"fingerprint": "
|
|
4768
|
+
"version": "0.0.21",
|
|
4769
|
+
"fingerprint": "IrtfUnceLsRHsZlALcBuLf2q9AzX7WZUeLQcLSRp4G4="
|
|
4770
4770
|
}
|
package/API.md
CHANGED
|
@@ -2072,37 +2072,37 @@ const ecsDeploymentProps: EcsDeploymentProps = { ... }
|
|
|
2072
2072
|
|
|
2073
2073
|
| **Name** | **Type** | **Description** |
|
|
2074
2074
|
| --- | --- | --- |
|
|
2075
|
-
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.appspec">appspec</a></code> | <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsAppSpec">EcsAppSpec</a></code> | The AppSpec to use for the deployment. |
|
|
2076
2075
|
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.deploymentGroup">deploymentGroup</a></code> | <code>aws-cdk-lib.aws_codedeploy.IEcsDeploymentGroup</code> | The deployment group to target for this deployment. |
|
|
2076
|
+
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.targetService">targetService</a></code> | <code><a href="#@cdklabs/cdk-ecs-codedeploy.TargetService">TargetService</a></code> | The ECS service to target for the deployment. |
|
|
2077
2077
|
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.autoRollback">autoRollback</a></code> | <code>aws-cdk-lib.aws_codedeploy.AutoRollbackConfig</code> | The configuration for rollback in the event that a deployment fails. |
|
|
2078
2078
|
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.description">description</a></code> | <code>string</code> | The description for the deployment. |
|
|
2079
2079
|
| <code><a href="#@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.timeout">timeout</a></code> | <code>aws-cdk-lib.Duration</code> | The timeout for the deployment. |
|
|
2080
2080
|
|
|
2081
2081
|
---
|
|
2082
2082
|
|
|
2083
|
-
##### `
|
|
2083
|
+
##### `deploymentGroup`<sup>Required</sup> <a name="deploymentGroup" id="@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.deploymentGroup"></a>
|
|
2084
2084
|
|
|
2085
2085
|
```typescript
|
|
2086
|
-
public readonly
|
|
2086
|
+
public readonly deploymentGroup: IEcsDeploymentGroup;
|
|
2087
2087
|
```
|
|
2088
2088
|
|
|
2089
|
-
- *Type:*
|
|
2090
|
-
|
|
2091
|
-
The AppSpec to use for the deployment.
|
|
2089
|
+
- *Type:* aws-cdk-lib.aws_codedeploy.IEcsDeploymentGroup
|
|
2092
2090
|
|
|
2093
|
-
|
|
2091
|
+
The deployment group to target for this deployment.
|
|
2094
2092
|
|
|
2095
2093
|
---
|
|
2096
2094
|
|
|
2097
|
-
##### `
|
|
2095
|
+
##### `targetService`<sup>Required</sup> <a name="targetService" id="@cdklabs/cdk-ecs-codedeploy.EcsDeploymentProps.property.targetService"></a>
|
|
2098
2096
|
|
|
2099
2097
|
```typescript
|
|
2100
|
-
public readonly
|
|
2098
|
+
public readonly targetService: TargetService;
|
|
2101
2099
|
```
|
|
2102
2100
|
|
|
2103
|
-
- *Type:*
|
|
2101
|
+
- *Type:* <a href="#@cdklabs/cdk-ecs-codedeploy.TargetService">TargetService</a>
|
|
2104
2102
|
|
|
2105
|
-
The
|
|
2103
|
+
The ECS service to target for the deployment.
|
|
2104
|
+
|
|
2105
|
+
see: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-resources.html#reference-appspec-file-structure-resources-ecs
|
|
2106
2106
|
|
|
2107
2107
|
---
|
|
2108
2108
|
|
package/README.md
CHANGED
|
@@ -45,11 +45,11 @@ declare const taskDefinition: ecs.ITaskDefinition;
|
|
|
45
45
|
|
|
46
46
|
new EcsDeployment({
|
|
47
47
|
deploymentGroup,
|
|
48
|
-
|
|
48
|
+
targetService: {
|
|
49
49
|
taskDefinition,
|
|
50
50
|
containerName: 'mycontainer',
|
|
51
51
|
containerPort: 80,
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
53
|
});
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -58,11 +58,11 @@ The deployment will use the AutoRollbackConfig for the EcsDeploymentGroup unless
|
|
|
58
58
|
```ts
|
|
59
59
|
new EcsDeployment({
|
|
60
60
|
deploymentGroup,
|
|
61
|
-
|
|
61
|
+
targetService: {
|
|
62
62
|
taskDefinition,
|
|
63
63
|
containerName: 'mycontainer',
|
|
64
64
|
containerPort: 80,
|
|
65
|
-
}
|
|
65
|
+
},
|
|
66
66
|
autoRollback: {
|
|
67
67
|
failedDeployment: true,
|
|
68
68
|
deploymentInAlarm: true,
|
|
@@ -76,11 +76,11 @@ By default, the deployment will timeout after 30 minutes. The timeout value can
|
|
|
76
76
|
```ts
|
|
77
77
|
new EcsDeployment({
|
|
78
78
|
deploymentGroup,
|
|
79
|
-
|
|
79
|
+
targetService: {
|
|
80
80
|
taskDefinition,
|
|
81
81
|
containerName: 'mycontainer',
|
|
82
82
|
containerPort: 80,
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
84
|
timeout: Duration.minutes(60),
|
|
85
85
|
});
|
|
86
86
|
```
|
|
@@ -4952,7 +4952,7 @@ var require_package = __commonJS({
|
|
|
4952
4952
|
module2.exports = {
|
|
4953
4953
|
name: "@aws-sdk/client-codedeploy",
|
|
4954
4954
|
description: "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
|
|
4955
|
-
version: "3.
|
|
4955
|
+
version: "3.241.0",
|
|
4956
4956
|
scripts: {
|
|
4957
4957
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
4958
4958
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -4961,7 +4961,8 @@ var require_package = __commonJS({
|
|
|
4961
4961
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
4962
4962
|
"build:types": "tsc -p tsconfig.types.json",
|
|
4963
4963
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
4964
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
4964
|
+
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
4965
|
+
"generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/codedeploy.json --keepFiles)"
|
|
4965
4966
|
},
|
|
4966
4967
|
main: "./dist-cjs/index.js",
|
|
4967
4968
|
types: "./dist-types/index.d.ts",
|
|
@@ -4970,9 +4971,9 @@ var require_package = __commonJS({
|
|
|
4970
4971
|
dependencies: {
|
|
4971
4972
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
4972
4973
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
4973
|
-
"@aws-sdk/client-sts": "3.
|
|
4974
|
+
"@aws-sdk/client-sts": "3.241.0",
|
|
4974
4975
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
4975
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
4976
|
+
"@aws-sdk/credential-provider-node": "3.241.0",
|
|
4976
4977
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
4977
4978
|
"@aws-sdk/hash-node": "3.226.0",
|
|
4978
4979
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -4997,7 +4998,7 @@ var require_package = __commonJS({
|
|
|
4997
4998
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
4998
4999
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
4999
5000
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
5000
|
-
"@aws-sdk/util-endpoints": "3.
|
|
5001
|
+
"@aws-sdk/util-endpoints": "3.241.0",
|
|
5001
5002
|
"@aws-sdk/util-retry": "3.229.0",
|
|
5002
5003
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
5003
5004
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|
|
@@ -8391,7 +8392,7 @@ var require_package2 = __commonJS({
|
|
|
8391
8392
|
module2.exports = {
|
|
8392
8393
|
name: "@aws-sdk/client-sts",
|
|
8393
8394
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
8394
|
-
version: "3.
|
|
8395
|
+
version: "3.241.0",
|
|
8395
8396
|
scripts: {
|
|
8396
8397
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
8397
8398
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -8402,7 +8403,8 @@ var require_package2 = __commonJS({
|
|
|
8402
8403
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
8403
8404
|
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
8404
8405
|
test: "yarn test:unit",
|
|
8405
|
-
"test:unit": "jest"
|
|
8406
|
+
"test:unit": "jest",
|
|
8407
|
+
"generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/sts.json --keepFiles)"
|
|
8406
8408
|
},
|
|
8407
8409
|
main: "./dist-cjs/index.js",
|
|
8408
8410
|
types: "./dist-types/index.d.ts",
|
|
@@ -8412,7 +8414,7 @@ var require_package2 = __commonJS({
|
|
|
8412
8414
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
8413
8415
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
8414
8416
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
8415
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
8417
|
+
"@aws-sdk/credential-provider-node": "3.241.0",
|
|
8416
8418
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
8417
8419
|
"@aws-sdk/hash-node": "3.226.0",
|
|
8418
8420
|
"@aws-sdk/invalid-dependency": "3.226.0",
|
|
@@ -8438,7 +8440,7 @@ var require_package2 = __commonJS({
|
|
|
8438
8440
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
8439
8441
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
8440
8442
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
8441
|
-
"@aws-sdk/util-endpoints": "3.
|
|
8443
|
+
"@aws-sdk/util-endpoints": "3.241.0",
|
|
8442
8444
|
"@aws-sdk/util-retry": "3.229.0",
|
|
8443
8445
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
8444
8446
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|
|
@@ -10390,7 +10392,7 @@ var require_package3 = __commonJS({
|
|
|
10390
10392
|
module2.exports = {
|
|
10391
10393
|
name: "@aws-sdk/client-sso",
|
|
10392
10394
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
10393
|
-
version: "3.
|
|
10395
|
+
version: "3.241.0",
|
|
10394
10396
|
scripts: {
|
|
10395
10397
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
10396
10398
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -10399,7 +10401,8 @@ var require_package3 = __commonJS({
|
|
|
10399
10401
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10400
10402
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10401
10403
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10402
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
10404
|
+
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
10405
|
+
"generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/sso.json --keepFiles)"
|
|
10403
10406
|
},
|
|
10404
10407
|
main: "./dist-cjs/index.js",
|
|
10405
10408
|
types: "./dist-types/index.d.ts",
|
|
@@ -10432,7 +10435,7 @@ var require_package3 = __commonJS({
|
|
|
10432
10435
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
10433
10436
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
10434
10437
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
10435
|
-
"@aws-sdk/util-endpoints": "3.
|
|
10438
|
+
"@aws-sdk/util-endpoints": "3.241.0",
|
|
10436
10439
|
"@aws-sdk/util-retry": "3.229.0",
|
|
10437
10440
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
10438
10441
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|
|
@@ -11240,7 +11243,7 @@ var require_partitions = __commonJS({
|
|
|
11240
11243
|
description: "Middle East (Bahrain)"
|
|
11241
11244
|
},
|
|
11242
11245
|
"sa-east-1": {
|
|
11243
|
-
description: "South America (
|
|
11246
|
+
description: "South America (S\xE3o Paulo)"
|
|
11244
11247
|
},
|
|
11245
11248
|
"us-east-1": {
|
|
11246
11249
|
description: "US East (N. Virginia)"
|
|
@@ -13955,7 +13958,7 @@ var require_package4 = __commonJS({
|
|
|
13955
13958
|
module2.exports = {
|
|
13956
13959
|
name: "@aws-sdk/client-sso-oidc",
|
|
13957
13960
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
13958
|
-
version: "3.
|
|
13961
|
+
version: "3.241.0",
|
|
13959
13962
|
scripts: {
|
|
13960
13963
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
13961
13964
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -13964,7 +13967,8 @@ var require_package4 = __commonJS({
|
|
|
13964
13967
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
13965
13968
|
"build:types": "tsc -p tsconfig.types.json",
|
|
13966
13969
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13967
|
-
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13970
|
+
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13971
|
+
"generate:client": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/sso-oidc.json --keepFiles)"
|
|
13968
13972
|
},
|
|
13969
13973
|
main: "./dist-cjs/index.js",
|
|
13970
13974
|
types: "./dist-types/index.d.ts",
|
|
@@ -13997,7 +14001,7 @@ var require_package4 = __commonJS({
|
|
|
13997
14001
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
13998
14002
|
"@aws-sdk/util-defaults-mode-browser": "3.234.0",
|
|
13999
14003
|
"@aws-sdk/util-defaults-mode-node": "3.234.0",
|
|
14000
|
-
"@aws-sdk/util-endpoints": "3.
|
|
14004
|
+
"@aws-sdk/util-endpoints": "3.241.0",
|
|
14001
14005
|
"@aws-sdk/util-retry": "3.229.0",
|
|
14002
14006
|
"@aws-sdk/util-user-agent-browser": "3.226.0",
|
|
14003
14007
|
"@aws-sdk/util-user-agent-node": "3.226.0",
|