diff --git a/typescript/ecs/cluster/index.ts b/typescript/ecs/cluster/index.ts index 124914cae..aa2a9bd62 100644 --- a/typescript/ecs/cluster/index.ts +++ b/typescript/ecs/cluster/index.ts @@ -2,7 +2,7 @@ import autoscaling = require('@aws-cdk/aws-autoscaling'); import ec2 = require('@aws-cdk/aws-ec2'); import { InstanceType } from '@aws-cdk/aws-ec2'; import ecs = require('@aws-cdk/aws-ecs'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class ECSCluster extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { @@ -13,7 +13,7 @@ class ECSCluster extends cdk.Stack { const asg = new autoscaling.AutoScalingGroup(this, 'MyFleet', { instanceType: new InstanceType("t2.xlarge"), machineImage: new ecs.EcsOptimizedAmi(), - updateType: autoscaling.UpdateType.ReplacingUpdate, + updateType: autoscaling.UpdateType.REPLACING_UPDATE, desiredCapacity: 3, vpc }); diff --git a/typescript/ecs/cluster/package.json b/typescript/ecs/cluster/package.json index b634746f5..0b80c9968 100644 --- a/typescript/ecs/cluster/package.json +++ b/typescript/ecs/cluster/package.json @@ -21,6 +21,6 @@ "dependencies": { "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/ecs-load-balanced-service/index.ts b/typescript/ecs/ecs-load-balanced-service/index.ts index 71c34e106..1e364ece5 100644 --- a/typescript/ecs/ecs-load-balanced-service/index.ts +++ b/typescript/ecs/ecs-load-balanced-service/index.ts @@ -1,7 +1,7 @@ import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class BonjourECS extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/typescript/ecs/ecs-load-balanced-service/package.json b/typescript/ecs/ecs-load-balanced-service/package.json index c011bbd7d..991a33bad 100644 --- a/typescript/ecs/ecs-load-balanced-service/package.json +++ b/typescript/ecs/ecs-load-balanced-service/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-ecs-patterns": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts b/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts index eb36933fd..6c928c09d 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/index.ts @@ -1,7 +1,7 @@ import ecs = require('@aws-cdk/aws-ecs'); import ec2 = require('@aws-cdk/aws-ec2'); import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); const app = new cdk.App(); const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); @@ -24,7 +24,7 @@ const container = taskDefinition.addContainer('web', { container.addPortMappings({ containerPort: 80, hostPort: 8080, - protocol: ecs.Protocol.Tcp + protocol: ecs.Protocol.TCP }); // Create Service @@ -46,9 +46,9 @@ listener.addTargets('ECS', { targets: [service], // include health check (default is none) healthCheck: { - intervalSecs: 60, + interval: cdk.Duration.seconds(60), path: "/health", - timeoutSeconds: 5, + timeout: cdk.Duration.seconds(5), } }); diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json index 18f0eb77e..fd2417560 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-elasticloadbalancingv2": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/ecs-service-with-logging/index.ts b/typescript/ecs/ecs-service-with-logging/index.ts index d096cf127..3a5ce7e24 100644 --- a/typescript/ecs/ecs-service-with-logging/index.ts +++ b/typescript/ecs/ecs-service-with-logging/index.ts @@ -1,6 +1,6 @@ import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class WillkommenECS extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { @@ -13,9 +13,7 @@ class WillkommenECS extends cdk.Stack { }); // create a task definition with CloudWatch Logs - const logging = new ecs.AwsLogDriver(this, "AppLogging", { - streamPrefix: "myapp", - }) + const logging = new ecs.AwsLogDriver({ streamPrefix: "myapp" }) const taskDef = new ecs.Ec2TaskDefinition(this, "MyTaskDefinition"); taskDef.addContainer("AppContainer", { diff --git a/typescript/ecs/ecs-service-with-logging/package-lock.json b/typescript/ecs/ecs-service-with-logging/package-lock.json deleted file mode 100644 index 06bc7ad5a..000000000 --- a/typescript/ecs/ecs-service-with-logging/package-lock.json +++ /dev/null @@ -1,481 +0,0 @@ -{ - "name": "ecs-service-with-logging", - "version": "0.23.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@aws-cdk/assets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets/-/assets-0.34.0.tgz", - "integrity": "sha512-nXAAFb6EKhdVcNseZQnjiYYrpzbJu8tVCfSJiIbi6WjYw+7jygexj7YkrZY1jRnCHUIqWcGD2LeCUx/k8yY4aQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0", - "minimatch": "^3.0.4" - }, - "dependencies": { - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "@aws-cdk/assets-docker": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets-docker/-/assets-docker-0.34.0.tgz", - "integrity": "sha512-SMuDqZtr8eirZsUXG8gskteXRXLJ5Jsb1us5pg8NtVPzF1drgu2iW/E8YlSP1QBZF20nqLfjMm7C1cEy/NxPHg==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-applicationautoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-applicationautoscaling/-/aws-applicationautoscaling-0.34.0.tgz", - "integrity": "sha512-XjZJHGDEW77l6kFAPuId8unr6FYX0E0d/qUq7BmjQEbdW/3ljSlZeDQb5sObvHjR7eTpyhaNzLEfePM6A3x2fw==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling/-/aws-autoscaling-0.34.0.tgz", - "integrity": "sha512-B+JXGjBm9hwbm4GAe0nmGvrrNGkjNdF9UvMqk1O4cXYr7gabIOcbemWGU3i7sLYUEvcjEgQYA8s9KsxIhlp99w==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-common": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-common/-/aws-autoscaling-common-0.34.0.tgz", - "integrity": "sha512-HmYDOACF1o3vR01IHgkY0BfXnZIFUCY8epBUUowYD5zbtqG2Cne/6TGaw9m7hBXJnuQmyGhvlPmtV+nW/aGnLQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-hooktargets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-hooktargets/-/aws-autoscaling-hooktargets-0.34.0.tgz", - "integrity": "sha512-JSnA4Fk+9olF2Gx6JgKqfjwevt6q2Xku01c1k7zI9Z53Jru2RZ/sG56jAYZarbB0YH9mJy6sOqzWOu9s5EPnwA==", - "requires": { - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-certificatemanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-certificatemanager/-/aws-certificatemanager-0.34.0.tgz", - "integrity": "sha512-tp0w0ifzlUPkaAYR9dJJZ8iwxgqucrRHXK5HoG5PY8WcBH1xSAIm6MtfP5R7Dh9s5hUwg1hz8wygEerN90SrzA==", - "requires": { - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudformation": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudformation/-/aws-cloudformation-0.34.0.tgz", - "integrity": "sha512-F9W53h4Ho//2YrdEgBj7JIXbYo/LT7V2FL33SK9guBHAxYVWWNipFcu/rvuZtKm/8te7F102b9RZGE42yfjKIg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "aws-sdk": "^2.409.0" - }, - "dependencies": { - "aws-sdk": { - "version": "2.469.0", - "bundled": true, - "requires": { - "buffer": "4.9.1", - "events": "1.1.1", - "ieee754": "1.1.8", - "jmespath": "0.15.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "uuid": "3.3.2", - "xml2js": "0.4.19" - } - }, - "base64-js": { - "version": "1.3.0", - "bundled": true - }, - "buffer": { - "version": "4.9.1", - "bundled": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "events": { - "version": "1.1.1", - "bundled": true - }, - "ieee754": { - "version": "1.1.8", - "bundled": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "jmespath": { - "version": "0.15.0", - "bundled": true - }, - "punycode": { - "version": "1.3.2", - "bundled": true - }, - "querystring": { - "version": "0.2.0", - "bundled": true - }, - "sax": { - "version": "1.2.1", - "bundled": true - }, - "url": { - "version": "0.10.3", - "bundled": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "uuid": { - "version": "3.3.2", - "bundled": true - }, - "xml2js": { - "version": "0.4.19", - "bundled": true, - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" - } - }, - "xmlbuilder": { - "version": "9.0.7", - "bundled": true - } - } - }, - "@aws-cdk/aws-cloudfront": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudfront/-/aws-cloudfront-0.34.0.tgz", - "integrity": "sha512-3zRJlKYAl0Z2C5ayyG5QjCPVOyDjf2/cf5NBRI1jznSu5Q+Rloal6NPj9t55MywY/54IeuTEQSy/UbtLSnLeiw==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudwatch": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudwatch/-/aws-cloudwatch-0.34.0.tgz", - "integrity": "sha512-w8xWg4wA11g7MS/Cn5CFKv3R9egtsQbGSruoROLpLzI2HY5/MpZ0Is8Nnv2acTKY2unoCIexVo9Ee666NgTVdg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ec2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ec2/-/aws-ec2-0.34.0.tgz", - "integrity": "sha512-7LU3V8b00k8TXNT4j/WnC0qpAGk9LVvoRd0UgKJzrGTN6Cah0lnM5MpMirwfr0KwKeFL83NwgsCZwMJdV2hHNw==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-ecr": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecr/-/aws-ecr-0.34.0.tgz", - "integrity": "sha512-Q70M7NmqUuw9O3s3aO4nHwCkYJ0KWaxzKfz3Ng5AKgd1G9kDmH8kNrGSuQRefdXIkF2St00Zuq2HpnqEMR8l1g==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ecs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecs/-/aws-ecs-0.34.0.tgz", - "integrity": "sha512-UR8O509P4zjwrVA6IS4eednmUcbUVwvpTnyG2T76pHQ28StVXcGr9zBDO+l1iHSP83hrklAM+1uwaw9GgEj4gA==", - "requires": { - "@aws-cdk/assets-docker": "^0.34.0", - "@aws-cdk/aws-applicationautoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling-hooktargets": "^0.34.0", - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/aws-route53-targets": "^0.34.0", - "@aws-cdk/aws-secretsmanager": "^0.34.0", - "@aws-cdk/aws-servicediscovery": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancing": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancing/-/aws-elasticloadbalancing-0.34.0.tgz", - "integrity": "sha512-gUwOSuoHU4VR8DDIY+X+nRLVvZGGE9vJQH/f9iU5GuIoJGGLuYBpSGum8BP9wrjVfDjf9qHzadxINAaz4CoEKg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancingv2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancingv2/-/aws-elasticloadbalancingv2-0.34.0.tgz", - "integrity": "sha512-ImYrubUmxcxpAqChmxjJx4K8QQ3rWyhQrwnzMHQLSt9zQGoLV4SIiDC8LGpIJ/fYI7xKIj0cFUs2MLpxcTifvQ==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-events": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-events/-/aws-events-0.34.0.tgz", - "integrity": "sha512-UeR9J/VeMN42LSfZvgwjGgl+JsPYl7ah3JLYBKBfxFf7Cee3oWPooJdjtzzmHIBsNkUybK8UJ5rFOxIP+o1sGg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-iam": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-iam/-/aws-iam-0.34.0.tgz", - "integrity": "sha512-C/cCuh7O+UdFUtClzqFRkiO+Tb/8xHRMMM1f6trQJf2BqbJY2TYHBAc47CwJTjhA+1zb1hTW6axNDTFkv+NoZg==", - "requires": { - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/region-info": "^0.34.0" - } - }, - "@aws-cdk/aws-kms": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-kms/-/aws-kms-0.34.0.tgz", - "integrity": "sha512-p4UMsql0IbGgtbNkrYHlqoq6ne7dqKjIt4Xf3qGCWDAGiXWSlYntFHh6UBzKR0RzW6r0GODttSmypFolLkNUFw==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-lambda": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-lambda/-/aws-lambda-0.34.0.tgz", - "integrity": "sha512-llndnoPan/uDAoamQzxC5FCzV7nLIkKeBiVHMCo+aokiJsIaDvxmaLpY6PxVvqo+bw5mP/fQeivDOenvAOYlcA==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-logs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-logs/-/aws-logs-0.34.0.tgz", - "integrity": "sha512-A2SPBYBYgLv7BacCxHmFMwFuCxZKe4TRE+M7mDplng6S6Fmq803neyCTPrOgznSGzJYFtfDoacFULuAXJ2hanQ==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-route53": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53/-/aws-route53-0.34.0.tgz", - "integrity": "sha512-jf8SF4wppJsRPCoVmvd6/votGxlbibDqlGP26IGLztIurAZ3ddxdXLHobDIaj1Y+/+8O6FnpFclmO2LNtGXL2g==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-route53-targets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53-targets/-/aws-route53-targets-0.34.0.tgz", - "integrity": "sha512-ORDUa13KnbkBW1w+SGogZ1IvtitiBaoZX7gvwfkgDIfGwvuFi8cojVqd2CuOVfcjbXcUHe+Ul67ezC0A7NjznA==", - "requires": { - "@aws-cdk/aws-cloudfront": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-s3": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-s3/-/aws-s3-0.34.0.tgz", - "integrity": "sha512-TT1eQFI7cenFHphMtouPVlKTyEQk8bigHL5r6ljLewWWMSp+ai6PS0RECjfJZ9rDwKj0IwGmqq+1H6xjPnbJUQ==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-secretsmanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-secretsmanager/-/aws-secretsmanager-0.34.0.tgz", - "integrity": "sha512-2dUlGx5ulEjGMSBfJHoBGsI9NAz1kDfGkolFsJVmkVc9bDXt0Co3D976FTcVWraOYj5BnPPDLTwBnWQGaItp5Q==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-servicediscovery": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-servicediscovery/-/aws-servicediscovery-0.34.0.tgz", - "integrity": "sha512-qOdkH3w94ZEqvdHh7t8plJrHa2ei4brZJOMWWVhJMjhnRJtdc8YTxXfxm0SSp5Y7oA6UvtmiFXV3oT1/yTynEg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sns": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sns/-/aws-sns-0.34.0.tgz", - "integrity": "sha512-p+Gk2Qa20irXlvP4k9xWrJslIcJsylD6IBPioLDJk17ZfOvMWqUEqUwAhM7Wvlk86JQ7tkwu2QVMohnbb9kCvA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sqs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sqs/-/aws-sqs-0.34.0.tgz", - "integrity": "sha512-hvBRlKIo6tIhSXhL9yR4O3OcocvkTB4cgCncIgmBo7SktUz6l8t9CpskOyIZP7ARP4jybk+uleHQ+RLjHtPJnA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/cdk": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cdk/-/cdk-0.34.0.tgz", - "integrity": "sha512-zir7bamhQcsJB2c1kBUHa3KhIAiHRpwv6UCPWXTCyzrc85M8JMXl2UQgcayq4dwJk5Tmeh4BMwQyYmz7Bf35wQ==", - "requires": { - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/cx-api": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cx-api/-/cx-api-0.34.0.tgz", - "integrity": "sha512-0k+CHsAs5zIOin80r95iKG87moa7PuP8eWlBkjNS4r1CjMc5G45MOWbq/iOk+p+155y7fPqTbl3lPCwgek1doA==", - "requires": { - "semver": "^6.1.1" - }, - "dependencies": { - "semver": { - "version": "6.1.1", - "bundled": true - } - } - }, - "@aws-cdk/region-info": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/region-info/-/region-info-0.34.0.tgz", - "integrity": "sha512-XIm/Mh5LZpsknmrBU6U27Ov/+t7UL+d9GntY7A+lr5DIPOmrFZYlXGsL2C3fLMQAlvUciLFvTrfp2GBbytnnrg==" - }, - "@types/node": { - "version": "8.10.49", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", - "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==", - "dev": true - }, - "typescript": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.1.tgz", - "integrity": "sha512-64HkdiRv1yYZsSe4xC1WVgamNigVYjlssIoaH2HcZF0+ijsk5YK2g0G34w9wJkze8+5ow4STd22AynfO6ZYYLw==", - "dev": true - } - } -} diff --git a/typescript/ecs/ecs-service-with-logging/package.json b/typescript/ecs/ecs-service-with-logging/package.json index 09fa3b1f4..f2c9bbe5a 100644 --- a/typescript/ecs/ecs-service-with-logging/package.json +++ b/typescript/ecs/ecs-service-with-logging/package.json @@ -21,6 +21,6 @@ "dependencies": { "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/ecs-service-with-task-networking/index.ts b/typescript/ecs/ecs-service-with-task-networking/index.ts index 396000129..644505e3a 100644 --- a/typescript/ecs/ecs-service-with-task-networking/index.ts +++ b/typescript/ecs/ecs-service-with-task-networking/index.ts @@ -1,7 +1,6 @@ -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); -import { Protocol } from '@aws-cdk/aws-ecs'; // Based on https://aws.amazon.com/blogs/compute/introducing-cloud-native-networking-for-ecs-containers/ const app = new cdk.App(); @@ -17,7 +16,7 @@ cluster.addCapacity('DefaultAutoScalingGroup', { // Create a task definition with its own elastic network interface const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'nginx-awspvc', { - networkMode: ecs.NetworkMode.AwsVpc, + networkMode: ecs.NetworkMode.AWS_VPC, }); const webContainer = taskDefinition.addContainer('nginx', { @@ -29,7 +28,7 @@ const webContainer = taskDefinition.addContainer('nginx', { webContainer.addPortMappings({ containerPort: 80, - protocol: Protocol.Tcp, + protocol: ecs.Protocol.TCP, }); // Create a security group that allows HTTP traffic on port 80 for our containers without modifying the security group on the instance @@ -38,7 +37,7 @@ const securityGroup = new ec2.SecurityGroup(stack, 'nginx--7623', { allowAllOutbound: false, }); -securityGroup.addIngressRule(new ec2.AnyIPv4(), new ec2.TcpPort(80)); +securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80)); // Create the service new ecs.Ec2Service(stack, 'awsvpc-ecs-demo-service', { diff --git a/typescript/ecs/ecs-service-with-task-networking/package.json b/typescript/ecs/ecs-service-with-task-networking/package.json index 8e4a6aa3f..d7f0dd10d 100644 --- a/typescript/ecs/ecs-service-with-task-networking/package.json +++ b/typescript/ecs/ecs-service-with-task-networking/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-elasticloadbalancingv2": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/ecs-service-with-task-placement/index.ts b/typescript/ecs/ecs-service-with-task-placement/index.ts index 82ada5d1f..afcac0972 100644 --- a/typescript/ecs/ecs-service-with-task-placement/index.ts +++ b/typescript/ecs/ecs-service-with-task-placement/index.ts @@ -1,6 +1,6 @@ import ecs = require('@aws-cdk/aws-ecs'); import ec2 = require('@aws-cdk/aws-ec2'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); const app = new cdk.App(); const stack = new cdk.Stack(app, 'aws-ecs-integ-ecs'); @@ -26,7 +26,7 @@ const container = taskDefinition.addContainer('web', { container.addPortMappings({ containerPort: 80, hostPort: 8080, - protocol: ecs.Protocol.Tcp + protocol: ecs.Protocol.TCP }); // Create Service @@ -35,9 +35,10 @@ const service = new ecs.Ec2Service(stack, "Service", { taskDefinition, }); -// Specify binpack by memory and spread across availability zone as placement strategies. +// Specify binpack by memory and spread across availability zone as placement strategies. // To place randomly, call: service.placeRandomly() -service.placePackedBy(ecs.BinPackResource.Memory); -service.placeSpreadAcross(ecs.BuiltInAttributes.AvailabilityZone); +service.addPlacementStrategies( + ecs.PlacementStrategy.packedBy(ecs.BinPackResource.MEMORY), + ecs.PlacementStrategy.spreadAcross(ecs.BuiltInAttributes.AVAILABILITY_ZONE)); app.synth(); diff --git a/typescript/ecs/ecs-service-with-task-placement/package.json b/typescript/ecs/ecs-service-with-task-placement/package.json index 18f0eb77e..fd2417560 100644 --- a/typescript/ecs/ecs-service-with-task-placement/package.json +++ b/typescript/ecs/ecs-service-with-task-placement/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-elasticloadbalancingv2": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/fargate-load-balanced-service/index.ts b/typescript/ecs/fargate-load-balanced-service/index.ts index aa060b126..b473f6d1b 100644 --- a/typescript/ecs/fargate-load-balanced-service/index.ts +++ b/typescript/ecs/fargate-load-balanced-service/index.ts @@ -1,7 +1,7 @@ import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class BonjourFargate extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { diff --git a/typescript/ecs/fargate-load-balanced-service/package.json b/typescript/ecs/fargate-load-balanced-service/package.json index 349fc1c68..ca873f8ee 100644 --- a/typescript/ecs/fargate-load-balanced-service/package.json +++ b/typescript/ecs/fargate-load-balanced-service/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-ecs-patterns": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/fargate-service-with-auto-scaling/index.ts b/typescript/ecs/fargate-service-with-auto-scaling/index.ts index abd23ff26..dbf6cbc04 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/index.ts +++ b/typescript/ecs/fargate-service-with-auto-scaling/index.ts @@ -1,7 +1,7 @@ import ecs = require('@aws-cdk/aws-ecs'); import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); import ec2 = require('@aws-cdk/aws-ec2'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class AutoScalingFargateService extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { @@ -21,8 +21,8 @@ class AutoScalingFargateService extends cdk.Stack { const scaling = fargateService.service.autoScaleTaskCount({ maxCapacity: 2 }); scaling.scaleOnCpuUtilization('CpuScaling', { targetUtilizationPercent: 50, - scaleInCooldownSec: 60, - scaleOutCooldownSec: 60 + scaleInCooldown: cdk.Duration.seconds(60), + scaleOutCooldown: cdk.Duration.seconds(60) }); new cdk.CfnOutput(this, 'LoadBalancerDNS', { value: fargateService.loadBalancer.loadBalancerDnsName }); diff --git a/typescript/ecs/fargate-service-with-auto-scaling/package-lock.json b/typescript/ecs/fargate-service-with-auto-scaling/package-lock.json deleted file mode 100644 index 103f524b1..000000000 --- a/typescript/ecs/fargate-service-with-auto-scaling/package-lock.json +++ /dev/null @@ -1,569 +0,0 @@ -{ - "name": "fargate-service-with-auto-scaling", - "version": "0.25.2", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@aws-cdk/assets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets/-/assets-0.34.0.tgz", - "integrity": "sha512-nXAAFb6EKhdVcNseZQnjiYYrpzbJu8tVCfSJiIbi6WjYw+7jygexj7YkrZY1jRnCHUIqWcGD2LeCUx/k8yY4aQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0", - "minimatch": "^3.0.4" - }, - "dependencies": { - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "@aws-cdk/assets-docker": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets-docker/-/assets-docker-0.34.0.tgz", - "integrity": "sha512-SMuDqZtr8eirZsUXG8gskteXRXLJ5Jsb1us5pg8NtVPzF1drgu2iW/E8YlSP1QBZF20nqLfjMm7C1cEy/NxPHg==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-applicationautoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-applicationautoscaling/-/aws-applicationautoscaling-0.34.0.tgz", - "integrity": "sha512-XjZJHGDEW77l6kFAPuId8unr6FYX0E0d/qUq7BmjQEbdW/3ljSlZeDQb5sObvHjR7eTpyhaNzLEfePM6A3x2fw==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling/-/aws-autoscaling-0.34.0.tgz", - "integrity": "sha512-B+JXGjBm9hwbm4GAe0nmGvrrNGkjNdF9UvMqk1O4cXYr7gabIOcbemWGU3i7sLYUEvcjEgQYA8s9KsxIhlp99w==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-common": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-common/-/aws-autoscaling-common-0.34.0.tgz", - "integrity": "sha512-HmYDOACF1o3vR01IHgkY0BfXnZIFUCY8epBUUowYD5zbtqG2Cne/6TGaw9m7hBXJnuQmyGhvlPmtV+nW/aGnLQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-hooktargets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-hooktargets/-/aws-autoscaling-hooktargets-0.34.0.tgz", - "integrity": "sha512-JSnA4Fk+9olF2Gx6JgKqfjwevt6q2Xku01c1k7zI9Z53Jru2RZ/sG56jAYZarbB0YH9mJy6sOqzWOu9s5EPnwA==", - "requires": { - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-certificatemanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-certificatemanager/-/aws-certificatemanager-0.34.0.tgz", - "integrity": "sha512-tp0w0ifzlUPkaAYR9dJJZ8iwxgqucrRHXK5HoG5PY8WcBH1xSAIm6MtfP5R7Dh9s5hUwg1hz8wygEerN90SrzA==", - "requires": { - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudformation": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudformation/-/aws-cloudformation-0.34.0.tgz", - "integrity": "sha512-F9W53h4Ho//2YrdEgBj7JIXbYo/LT7V2FL33SK9guBHAxYVWWNipFcu/rvuZtKm/8te7F102b9RZGE42yfjKIg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "aws-sdk": "^2.409.0" - }, - "dependencies": { - "aws-sdk": { - "version": "2.469.0", - "bundled": true, - "requires": { - "buffer": "4.9.1", - "events": "1.1.1", - "ieee754": "1.1.8", - "jmespath": "0.15.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "uuid": "3.3.2", - "xml2js": "0.4.19" - } - }, - "base64-js": { - "version": "1.3.0", - "bundled": true - }, - "buffer": { - "version": "4.9.1", - "bundled": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "events": { - "version": "1.1.1", - "bundled": true - }, - "ieee754": { - "version": "1.1.8", - "bundled": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "jmespath": { - "version": "0.15.0", - "bundled": true - }, - "punycode": { - "version": "1.3.2", - "bundled": true - }, - "querystring": { - "version": "0.2.0", - "bundled": true - }, - "sax": { - "version": "1.2.1", - "bundled": true - }, - "url": { - "version": "0.10.3", - "bundled": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "uuid": { - "version": "3.3.2", - "bundled": true - }, - "xml2js": { - "version": "0.4.19", - "bundled": true, - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" - } - }, - "xmlbuilder": { - "version": "9.0.7", - "bundled": true - } - } - }, - "@aws-cdk/aws-cloudfront": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudfront/-/aws-cloudfront-0.34.0.tgz", - "integrity": "sha512-3zRJlKYAl0Z2C5ayyG5QjCPVOyDjf2/cf5NBRI1jznSu5Q+Rloal6NPj9t55MywY/54IeuTEQSy/UbtLSnLeiw==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudwatch": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudwatch/-/aws-cloudwatch-0.34.0.tgz", - "integrity": "sha512-w8xWg4wA11g7MS/Cn5CFKv3R9egtsQbGSruoROLpLzI2HY5/MpZ0Is8Nnv2acTKY2unoCIexVo9Ee666NgTVdg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-codebuild": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-codebuild/-/aws-codebuild-0.34.0.tgz", - "integrity": "sha512-uTwF0EllR5sCD5jTWx8m/tnbNxKlJzkHoCrKT0posRqqoC5Z/m1TCmV2/g+LJGQrxWnGdRhSRdASf7ZR41/eww==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/assets-docker": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-codecommit": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-codecommit": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-codecommit/-/aws-codecommit-0.34.0.tgz", - "integrity": "sha512-jJwZrnDKhXbNAZd0tvMVw6b2lpxkj3e7d9kJetvKEjfiJwg/+37MYFkR1bAbg8Mb8N1j2f1D4N4nD3ej8RTxEw==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-codepipeline": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-codepipeline/-/aws-codepipeline-0.34.0.tgz", - "integrity": "sha512-/vmuKSGjv1ObqTlAet9Y6bl4Ykmt9oukeEvjLT6itbjqCMlULKDis1xAJ0sFnReC6GWaYnjsjo8K24Ejms4SHg==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ec2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ec2/-/aws-ec2-0.34.0.tgz", - "integrity": "sha512-7LU3V8b00k8TXNT4j/WnC0qpAGk9LVvoRd0UgKJzrGTN6Cah0lnM5MpMirwfr0KwKeFL83NwgsCZwMJdV2hHNw==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-ecr": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecr/-/aws-ecr-0.34.0.tgz", - "integrity": "sha512-Q70M7NmqUuw9O3s3aO4nHwCkYJ0KWaxzKfz3Ng5AKgd1G9kDmH8kNrGSuQRefdXIkF2St00Zuq2HpnqEMR8l1g==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ecs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecs/-/aws-ecs-0.34.0.tgz", - "integrity": "sha512-UR8O509P4zjwrVA6IS4eednmUcbUVwvpTnyG2T76pHQ28StVXcGr9zBDO+l1iHSP83hrklAM+1uwaw9GgEj4gA==", - "requires": { - "@aws-cdk/assets-docker": "^0.34.0", - "@aws-cdk/aws-applicationautoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling-hooktargets": "^0.34.0", - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/aws-route53-targets": "^0.34.0", - "@aws-cdk/aws-secretsmanager": "^0.34.0", - "@aws-cdk/aws-servicediscovery": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-ecs-patterns": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecs-patterns/-/aws-ecs-patterns-0.34.0.tgz", - "integrity": "sha512-g5wkQBN65zyxenpuuAEmtIb4AjLSZxIxPR2kyWYqKhzRccRsIc9yNi6EJ0wwaZO66d7rUFNwWfWLgUfCfLqZnw==", - "requires": { - "@aws-cdk/aws-applicationautoscaling": "^0.34.0", - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecs": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-events-targets": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/aws-route53-targets": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancing": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancing/-/aws-elasticloadbalancing-0.34.0.tgz", - "integrity": "sha512-gUwOSuoHU4VR8DDIY+X+nRLVvZGGE9vJQH/f9iU5GuIoJGGLuYBpSGum8BP9wrjVfDjf9qHzadxINAaz4CoEKg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancingv2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancingv2/-/aws-elasticloadbalancingv2-0.34.0.tgz", - "integrity": "sha512-ImYrubUmxcxpAqChmxjJx4K8QQ3rWyhQrwnzMHQLSt9zQGoLV4SIiDC8LGpIJ/fYI7xKIj0cFUs2MLpxcTifvQ==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-events": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-events/-/aws-events-0.34.0.tgz", - "integrity": "sha512-UeR9J/VeMN42LSfZvgwjGgl+JsPYl7ah3JLYBKBfxFf7Cee3oWPooJdjtzzmHIBsNkUybK8UJ5rFOxIP+o1sGg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-events-targets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-events-targets/-/aws-events-targets-0.34.0.tgz", - "integrity": "sha512-3EZjRT81WgTaMHjxQOcoqKFHZML0uBD2lIEG9K4XTr1Q2UAnjFxZlEvlfYvDRz261T/FK+YQbGjrJmXrTuYhYA==", - "requires": { - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-codebuild": "^0.34.0", - "@aws-cdk/aws-codepipeline": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecs": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-stepfunctions": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-iam": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-iam/-/aws-iam-0.34.0.tgz", - "integrity": "sha512-C/cCuh7O+UdFUtClzqFRkiO+Tb/8xHRMMM1f6trQJf2BqbJY2TYHBAc47CwJTjhA+1zb1hTW6axNDTFkv+NoZg==", - "requires": { - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/region-info": "^0.34.0" - } - }, - "@aws-cdk/aws-kms": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-kms/-/aws-kms-0.34.0.tgz", - "integrity": "sha512-p4UMsql0IbGgtbNkrYHlqoq6ne7dqKjIt4Xf3qGCWDAGiXWSlYntFHh6UBzKR0RzW6r0GODttSmypFolLkNUFw==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-lambda": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-lambda/-/aws-lambda-0.34.0.tgz", - "integrity": "sha512-llndnoPan/uDAoamQzxC5FCzV7nLIkKeBiVHMCo+aokiJsIaDvxmaLpY6PxVvqo+bw5mP/fQeivDOenvAOYlcA==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-logs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-logs/-/aws-logs-0.34.0.tgz", - "integrity": "sha512-A2SPBYBYgLv7BacCxHmFMwFuCxZKe4TRE+M7mDplng6S6Fmq803neyCTPrOgznSGzJYFtfDoacFULuAXJ2hanQ==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-route53": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53/-/aws-route53-0.34.0.tgz", - "integrity": "sha512-jf8SF4wppJsRPCoVmvd6/votGxlbibDqlGP26IGLztIurAZ3ddxdXLHobDIaj1Y+/+8O6FnpFclmO2LNtGXL2g==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-route53-targets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53-targets/-/aws-route53-targets-0.34.0.tgz", - "integrity": "sha512-ORDUa13KnbkBW1w+SGogZ1IvtitiBaoZX7gvwfkgDIfGwvuFi8cojVqd2CuOVfcjbXcUHe+Ul67ezC0A7NjznA==", - "requires": { - "@aws-cdk/aws-cloudfront": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-s3": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-s3/-/aws-s3-0.34.0.tgz", - "integrity": "sha512-TT1eQFI7cenFHphMtouPVlKTyEQk8bigHL5r6ljLewWWMSp+ai6PS0RECjfJZ9rDwKj0IwGmqq+1H6xjPnbJUQ==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-secretsmanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-secretsmanager/-/aws-secretsmanager-0.34.0.tgz", - "integrity": "sha512-2dUlGx5ulEjGMSBfJHoBGsI9NAz1kDfGkolFsJVmkVc9bDXt0Co3D976FTcVWraOYj5BnPPDLTwBnWQGaItp5Q==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-servicediscovery": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-servicediscovery/-/aws-servicediscovery-0.34.0.tgz", - "integrity": "sha512-qOdkH3w94ZEqvdHh7t8plJrHa2ei4brZJOMWWVhJMjhnRJtdc8YTxXfxm0SSp5Y7oA6UvtmiFXV3oT1/yTynEg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sns": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sns/-/aws-sns-0.34.0.tgz", - "integrity": "sha512-p+Gk2Qa20irXlvP4k9xWrJslIcJsylD6IBPioLDJk17ZfOvMWqUEqUwAhM7Wvlk86JQ7tkwu2QVMohnbb9kCvA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sqs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sqs/-/aws-sqs-0.34.0.tgz", - "integrity": "sha512-hvBRlKIo6tIhSXhL9yR4O3OcocvkTB4cgCncIgmBo7SktUz6l8t9CpskOyIZP7ARP4jybk+uleHQ+RLjHtPJnA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-stepfunctions": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-stepfunctions/-/aws-stepfunctions-0.34.0.tgz", - "integrity": "sha512-3cBf8vI3OkZZV+7dOLOom7whj1/nfb6zqEHSc6eISKM0k7u2NNSlZ4qUb5a6MMViiavMxOK4ojko6V6oq4RDEw==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/cdk": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cdk/-/cdk-0.34.0.tgz", - "integrity": "sha512-zir7bamhQcsJB2c1kBUHa3KhIAiHRpwv6UCPWXTCyzrc85M8JMXl2UQgcayq4dwJk5Tmeh4BMwQyYmz7Bf35wQ==", - "requires": { - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/cx-api": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cx-api/-/cx-api-0.34.0.tgz", - "integrity": "sha512-0k+CHsAs5zIOin80r95iKG87moa7PuP8eWlBkjNS4r1CjMc5G45MOWbq/iOk+p+155y7fPqTbl3lPCwgek1doA==", - "requires": { - "semver": "^6.1.1" - }, - "dependencies": { - "semver": { - "version": "6.1.1", - "bundled": true - } - } - }, - "@aws-cdk/region-info": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/region-info/-/region-info-0.34.0.tgz", - "integrity": "sha512-XIm/Mh5LZpsknmrBU6U27Ov/+t7UL+d9GntY7A+lr5DIPOmrFZYlXGsL2C3fLMQAlvUciLFvTrfp2GBbytnnrg==" - }, - "@types/node": { - "version": "8.10.49", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", - "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==", - "dev": true - }, - "typescript": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.1.tgz", - "integrity": "sha512-64HkdiRv1yYZsSe4xC1WVgamNigVYjlssIoaH2HcZF0+ijsk5YK2g0G34w9wJkze8+5ow4STd22AynfO6ZYYLw==", - "dev": true - } - } -} diff --git a/typescript/ecs/fargate-service-with-auto-scaling/package.json b/typescript/ecs/fargate-service-with-auto-scaling/package.json index 71608d752..e1378e0d5 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/package.json +++ b/typescript/ecs/fargate-service-with-auto-scaling/package.json @@ -23,6 +23,6 @@ "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-ecs-patterns": "*", "@aws-cdk/aws-elasticloadbalancingv2": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/fargate-service-with-local-image/index.ts b/typescript/ecs/fargate-service-with-local-image/index.ts index 6a332e16b..a6b33933d 100644 --- a/typescript/ecs/fargate-service-with-local-image/index.ts +++ b/typescript/ecs/fargate-service-with-local-image/index.ts @@ -1,7 +1,7 @@ import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); import ecs_patterns = require('@aws-cdk/aws-ecs-patterns'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); import path = require('path'); const app = new cdk.App(); @@ -18,9 +18,7 @@ const cluster = new ecs.Cluster(stack, 'Cluster', { vpc }); // with the image from ECR. new ecs_patterns.LoadBalancedFargateService(stack, "FargateService", { cluster, - image: ecs.ContainerImage.fromAsset(stack, "local-image" , { - directory: path.join(__dirname, 'local-image') - }) + image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, 'local-image')) }); app.synth(); diff --git a/typescript/ecs/fargate-service-with-local-image/package.json b/typescript/ecs/fargate-service-with-local-image/package.json index 73345555d..8520dfd3f 100644 --- a/typescript/ecs/fargate-service-with-local-image/package.json +++ b/typescript/ecs/fargate-service-with-local-image/package.json @@ -22,6 +22,6 @@ "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", "@aws-cdk/aws-ecs-patterns": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } } diff --git a/typescript/ecs/fargate-service-with-logging/index.ts b/typescript/ecs/fargate-service-with-logging/index.ts index f2df6ffe9..ecf3e2c79 100644 --- a/typescript/ecs/fargate-service-with-logging/index.ts +++ b/typescript/ecs/fargate-service-with-logging/index.ts @@ -1,6 +1,6 @@ import ec2 = require('@aws-cdk/aws-ec2'); import ecs = require('@aws-cdk/aws-ecs'); -import cdk = require('@aws-cdk/cdk'); +import cdk = require('@aws-cdk/core'); class WillkommenFargate extends cdk.Stack { constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { @@ -10,13 +10,11 @@ class WillkommenFargate extends cdk.Stack { const cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc }); // create a task definition with CloudWatch Logs - const logging = new ecs.AwsLogDriver(this, "AppLogging", { - streamPrefix: "myapp", - }) + const logging = new ecs.AwsLogDriver({ streamPrefix: "myapp" }) const taskDef = new ecs.FargateTaskDefinition(this, "MyTaskDefinition", { - memoryMiB: '512', - cpu: '256', + memoryLimitMiB: 512, + cpu: 256, }) taskDef.addContainer("AppContainer", { image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"), diff --git a/typescript/ecs/fargate-service-with-logging/package-lock.json b/typescript/ecs/fargate-service-with-logging/package-lock.json deleted file mode 100644 index c86adc389..000000000 --- a/typescript/ecs/fargate-service-with-logging/package-lock.json +++ /dev/null @@ -1,481 +0,0 @@ -{ - "name": "fargate-service-with-logging", - "version": "0.23.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@aws-cdk/assets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets/-/assets-0.34.0.tgz", - "integrity": "sha512-nXAAFb6EKhdVcNseZQnjiYYrpzbJu8tVCfSJiIbi6WjYw+7jygexj7YkrZY1jRnCHUIqWcGD2LeCUx/k8yY4aQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0", - "minimatch": "^3.0.4" - }, - "dependencies": { - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "^1.1.7" - } - } - } - }, - "@aws-cdk/assets-docker": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/assets-docker/-/assets-docker-0.34.0.tgz", - "integrity": "sha512-SMuDqZtr8eirZsUXG8gskteXRXLJ5Jsb1us5pg8NtVPzF1drgu2iW/E8YlSP1QBZF20nqLfjMm7C1cEy/NxPHg==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-applicationautoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-applicationautoscaling/-/aws-applicationautoscaling-0.34.0.tgz", - "integrity": "sha512-XjZJHGDEW77l6kFAPuId8unr6FYX0E0d/qUq7BmjQEbdW/3ljSlZeDQb5sObvHjR7eTpyhaNzLEfePM6A3x2fw==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling/-/aws-autoscaling-0.34.0.tgz", - "integrity": "sha512-B+JXGjBm9hwbm4GAe0nmGvrrNGkjNdF9UvMqk1O4cXYr7gabIOcbemWGU3i7sLYUEvcjEgQYA8s9KsxIhlp99w==", - "requires": { - "@aws-cdk/aws-autoscaling-common": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-common": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-common/-/aws-autoscaling-common-0.34.0.tgz", - "integrity": "sha512-HmYDOACF1o3vR01IHgkY0BfXnZIFUCY8epBUUowYD5zbtqG2Cne/6TGaw9m7hBXJnuQmyGhvlPmtV+nW/aGnLQ==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-autoscaling-hooktargets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-autoscaling-hooktargets/-/aws-autoscaling-hooktargets-0.34.0.tgz", - "integrity": "sha512-JSnA4Fk+9olF2Gx6JgKqfjwevt6q2Xku01c1k7zI9Z53Jru2RZ/sG56jAYZarbB0YH9mJy6sOqzWOu9s5EPnwA==", - "requires": { - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-certificatemanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-certificatemanager/-/aws-certificatemanager-0.34.0.tgz", - "integrity": "sha512-tp0w0ifzlUPkaAYR9dJJZ8iwxgqucrRHXK5HoG5PY8WcBH1xSAIm6MtfP5R7Dh9s5hUwg1hz8wygEerN90SrzA==", - "requires": { - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudformation": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudformation/-/aws-cloudformation-0.34.0.tgz", - "integrity": "sha512-F9W53h4Ho//2YrdEgBj7JIXbYo/LT7V2FL33SK9guBHAxYVWWNipFcu/rvuZtKm/8te7F102b9RZGE42yfjKIg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "aws-sdk": "^2.409.0" - }, - "dependencies": { - "aws-sdk": { - "version": "2.469.0", - "bundled": true, - "requires": { - "buffer": "4.9.1", - "events": "1.1.1", - "ieee754": "1.1.8", - "jmespath": "0.15.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "uuid": "3.3.2", - "xml2js": "0.4.19" - } - }, - "base64-js": { - "version": "1.3.0", - "bundled": true - }, - "buffer": { - "version": "4.9.1", - "bundled": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, - "events": { - "version": "1.1.1", - "bundled": true - }, - "ieee754": { - "version": "1.1.8", - "bundled": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "jmespath": { - "version": "0.15.0", - "bundled": true - }, - "punycode": { - "version": "1.3.2", - "bundled": true - }, - "querystring": { - "version": "0.2.0", - "bundled": true - }, - "sax": { - "version": "1.2.1", - "bundled": true - }, - "url": { - "version": "0.10.3", - "bundled": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "uuid": { - "version": "3.3.2", - "bundled": true - }, - "xml2js": { - "version": "0.4.19", - "bundled": true, - "requires": { - "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" - } - }, - "xmlbuilder": { - "version": "9.0.7", - "bundled": true - } - } - }, - "@aws-cdk/aws-cloudfront": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudfront/-/aws-cloudfront-0.34.0.tgz", - "integrity": "sha512-3zRJlKYAl0Z2C5ayyG5QjCPVOyDjf2/cf5NBRI1jznSu5Q+Rloal6NPj9t55MywY/54IeuTEQSy/UbtLSnLeiw==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-cloudwatch": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-cloudwatch/-/aws-cloudwatch-0.34.0.tgz", - "integrity": "sha512-w8xWg4wA11g7MS/Cn5CFKv3R9egtsQbGSruoROLpLzI2HY5/MpZ0Is8Nnv2acTKY2unoCIexVo9Ee666NgTVdg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ec2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ec2/-/aws-ec2-0.34.0.tgz", - "integrity": "sha512-7LU3V8b00k8TXNT4j/WnC0qpAGk9LVvoRd0UgKJzrGTN6Cah0lnM5MpMirwfr0KwKeFL83NwgsCZwMJdV2hHNw==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-ecr": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecr/-/aws-ecr-0.34.0.tgz", - "integrity": "sha512-Q70M7NmqUuw9O3s3aO4nHwCkYJ0KWaxzKfz3Ng5AKgd1G9kDmH8kNrGSuQRefdXIkF2St00Zuq2HpnqEMR8l1g==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-ecs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-ecs/-/aws-ecs-0.34.0.tgz", - "integrity": "sha512-UR8O509P4zjwrVA6IS4eednmUcbUVwvpTnyG2T76pHQ28StVXcGr9zBDO+l1iHSP83hrklAM+1uwaw9GgEj4gA==", - "requires": { - "@aws-cdk/assets-docker": "^0.34.0", - "@aws-cdk/aws-applicationautoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling": "^0.34.0", - "@aws-cdk/aws-autoscaling-hooktargets": "^0.34.0", - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudformation": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-ecr": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancing": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/aws-route53-targets": "^0.34.0", - "@aws-cdk/aws-secretsmanager": "^0.34.0", - "@aws-cdk/aws-servicediscovery": "^0.34.0", - "@aws-cdk/aws-sns": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancing": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancing/-/aws-elasticloadbalancing-0.34.0.tgz", - "integrity": "sha512-gUwOSuoHU4VR8DDIY+X+nRLVvZGGE9vJQH/f9iU5GuIoJGGLuYBpSGum8BP9wrjVfDjf9qHzadxINAaz4CoEKg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-elasticloadbalancingv2": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-elasticloadbalancingv2/-/aws-elasticloadbalancingv2-0.34.0.tgz", - "integrity": "sha512-ImYrubUmxcxpAqChmxjJx4K8QQ3rWyhQrwnzMHQLSt9zQGoLV4SIiDC8LGpIJ/fYI7xKIj0cFUs2MLpxcTifvQ==", - "requires": { - "@aws-cdk/aws-certificatemanager": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-events": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-events/-/aws-events-0.34.0.tgz", - "integrity": "sha512-UeR9J/VeMN42LSfZvgwjGgl+JsPYl7ah3JLYBKBfxFf7Cee3oWPooJdjtzzmHIBsNkUybK8UJ5rFOxIP+o1sGg==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-iam": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-iam/-/aws-iam-0.34.0.tgz", - "integrity": "sha512-C/cCuh7O+UdFUtClzqFRkiO+Tb/8xHRMMM1f6trQJf2BqbJY2TYHBAc47CwJTjhA+1zb1hTW6axNDTFkv+NoZg==", - "requires": { - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/region-info": "^0.34.0" - } - }, - "@aws-cdk/aws-kms": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-kms/-/aws-kms-0.34.0.tgz", - "integrity": "sha512-p4UMsql0IbGgtbNkrYHlqoq6ne7dqKjIt4Xf3qGCWDAGiXWSlYntFHh6UBzKR0RzW6r0GODttSmypFolLkNUFw==", - "requires": { - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-lambda": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-lambda/-/aws-lambda-0.34.0.tgz", - "integrity": "sha512-llndnoPan/uDAoamQzxC5FCzV7nLIkKeBiVHMCo+aokiJsIaDvxmaLpY6PxVvqo+bw5mP/fQeivDOenvAOYlcA==", - "requires": { - "@aws-cdk/assets": "^0.34.0", - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/aws-s3": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-logs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-logs/-/aws-logs-0.34.0.tgz", - "integrity": "sha512-A2SPBYBYgLv7BacCxHmFMwFuCxZKe4TRE+M7mDplng6S6Fmq803neyCTPrOgznSGzJYFtfDoacFULuAXJ2hanQ==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-route53": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53/-/aws-route53-0.34.0.tgz", - "integrity": "sha512-jf8SF4wppJsRPCoVmvd6/votGxlbibDqlGP26IGLztIurAZ3ddxdXLHobDIaj1Y+/+8O6FnpFclmO2LNtGXL2g==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-logs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0", - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/aws-route53-targets": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-route53-targets/-/aws-route53-targets-0.34.0.tgz", - "integrity": "sha512-ORDUa13KnbkBW1w+SGogZ1IvtitiBaoZX7gvwfkgDIfGwvuFi8cojVqd2CuOVfcjbXcUHe+Ul67ezC0A7NjznA==", - "requires": { - "@aws-cdk/aws-cloudfront": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-s3": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-s3/-/aws-s3-0.34.0.tgz", - "integrity": "sha512-TT1eQFI7cenFHphMtouPVlKTyEQk8bigHL5r6ljLewWWMSp+ai6PS0RECjfJZ9rDwKj0IwGmqq+1H6xjPnbJUQ==", - "requires": { - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-secretsmanager": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-secretsmanager/-/aws-secretsmanager-0.34.0.tgz", - "integrity": "sha512-2dUlGx5ulEjGMSBfJHoBGsI9NAz1kDfGkolFsJVmkVc9bDXt0Co3D976FTcVWraOYj5BnPPDLTwBnWQGaItp5Q==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-servicediscovery": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-servicediscovery/-/aws-servicediscovery-0.34.0.tgz", - "integrity": "sha512-qOdkH3w94ZEqvdHh7t8plJrHa2ei4brZJOMWWVhJMjhnRJtdc8YTxXfxm0SSp5Y7oA6UvtmiFXV3oT1/yTynEg==", - "requires": { - "@aws-cdk/aws-ec2": "^0.34.0", - "@aws-cdk/aws-elasticloadbalancingv2": "^0.34.0", - "@aws-cdk/aws-route53": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sns": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sns/-/aws-sns-0.34.0.tgz", - "integrity": "sha512-p+Gk2Qa20irXlvP4k9xWrJslIcJsylD6IBPioLDJk17ZfOvMWqUEqUwAhM7Wvlk86JQ7tkwu2QVMohnbb9kCvA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-events": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-lambda": "^0.34.0", - "@aws-cdk/aws-sqs": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/aws-sqs": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/aws-sqs/-/aws-sqs-0.34.0.tgz", - "integrity": "sha512-hvBRlKIo6tIhSXhL9yR4O3OcocvkTB4cgCncIgmBo7SktUz6l8t9CpskOyIZP7ARP4jybk+uleHQ+RLjHtPJnA==", - "requires": { - "@aws-cdk/aws-cloudwatch": "^0.34.0", - "@aws-cdk/aws-iam": "^0.34.0", - "@aws-cdk/aws-kms": "^0.34.0", - "@aws-cdk/cdk": "^0.34.0" - } - }, - "@aws-cdk/cdk": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cdk/-/cdk-0.34.0.tgz", - "integrity": "sha512-zir7bamhQcsJB2c1kBUHa3KhIAiHRpwv6UCPWXTCyzrc85M8JMXl2UQgcayq4dwJk5Tmeh4BMwQyYmz7Bf35wQ==", - "requires": { - "@aws-cdk/cx-api": "^0.34.0" - } - }, - "@aws-cdk/cx-api": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/cx-api/-/cx-api-0.34.0.tgz", - "integrity": "sha512-0k+CHsAs5zIOin80r95iKG87moa7PuP8eWlBkjNS4r1CjMc5G45MOWbq/iOk+p+155y7fPqTbl3lPCwgek1doA==", - "requires": { - "semver": "^6.1.1" - }, - "dependencies": { - "semver": { - "version": "6.1.1", - "bundled": true - } - } - }, - "@aws-cdk/region-info": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@aws-cdk/region-info/-/region-info-0.34.0.tgz", - "integrity": "sha512-XIm/Mh5LZpsknmrBU6U27Ov/+t7UL+d9GntY7A+lr5DIPOmrFZYlXGsL2C3fLMQAlvUciLFvTrfp2GBbytnnrg==" - }, - "@types/node": { - "version": "8.10.49", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.49.tgz", - "integrity": "sha512-YX30JVx0PvSmJ3Eqr74fYLGeBxD+C7vIL20ek+GGGLJeUbVYRUW3EzyAXpIRA0K8c8o0UWqR/GwEFYiFoz1T8w==", - "dev": true - }, - "typescript": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.1.tgz", - "integrity": "sha512-64HkdiRv1yYZsSe4xC1WVgamNigVYjlssIoaH2HcZF0+ijsk5YK2g0G34w9wJkze8+5ow4STd22AynfO6ZYYLw==", - "dev": true - } - } -} diff --git a/typescript/ecs/fargate-service-with-logging/package.json b/typescript/ecs/fargate-service-with-logging/package.json index 0ee8ce81e..39cdb675a 100644 --- a/typescript/ecs/fargate-service-with-logging/package.json +++ b/typescript/ecs/fargate-service-with-logging/package.json @@ -21,6 +21,6 @@ "dependencies": { "@aws-cdk/aws-ec2": "*", "@aws-cdk/aws-ecs": "*", - "@aws-cdk/cdk": "*" + "@aws-cdk/core": "*" } }