This repository was archived by the owner on Feb 16, 2024. It is now read-only.
[Snyk] Upgrade @aws-cdk/cdk from 0.24.1 to 0.35.0#6
Open
Conversation
Snyk has created this PR to upgrade @aws-cdk/cdk from 0.24.1 to 0.35.0. See this package in NPM: https://www.npmjs.com/package/@aws-cdk/cdk See this project in Snyk: https://app.snyk.io/org/temyers/project/a6f3ace3-4d86-4bed-9504-2ba8e1bcacdc?utm_source=github&utm_medium=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @aws-cdk/cdk from 0.24.1 to 0.35.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.Release notes
Package name: @aws-cdk/cdk
-
0.35.0 - 2019-06-19
- cli: Move version check TTL file to home directory (#2774) (1ae11c0)
- cli: correctly pass Stack-level Tags (#2829) (e0718ef), closes #2822
- cli: Hide @types/yargs types from types (#2907) (095d8e2), closes #2895
- cloudformation-diff: string.replace error on
- codebuild: API cleanup. (#2745) (c3667d7)
- codebuild: correctly handle permissions for Projects inside VPC. (#2662) (390baf1), closes #2651 #2652
- core: make IResolvable.creationStack required (#2912) (7c6ebb6)
- core: use default account/region when environment is not specified (#2867) (e9a4a79), closes #2728 #2853 #2866
- ecs: downscope permissions required by instance draining hook (#2761) (9ea6148)
- ecs-patterns: update constructs for ECS/Fargate consistency (#2795) (1378e2d)
- events-targets: event targets can have the same construct id (#2744) (210dd0f), closes #2377
- iam: support adding permissions to imported roles (#2805) (936464f), closes #2381 #2651 #2652 #2662
- cli: Correct java init template (#2889) (b3b3ba9)
- rds: allow setting backupRetentionPeriod=0 (#2875) (b0730dd)
- rds: fix unresolved endpoint socket address (#2846) (902636a), closes #2711
- sqs: remove 'Batch' permissions (#2806) (654cb37), closes #2381
- apigateway: API cleanups (#2903) (53e1191)
- assets: API cleanups (#2910) (83eee09)
- codebuild: introduce BuildSpec object (#2820) (86a2192)
- codepipeline: rename
- core: revisit the Stack API (#2818) (47afdc2), closes #2728
- dynamodb: API cleanups (#2905) (d229836)
- ecs: Asset ContainerImage no longer takes Construct arguments (#2906) (8f400e7)
- ecs: rename
- lambda: renamed the lambda.Runtime enum values from NodeJS to Nodejs (#2815) (10c37dd), closes #980
- lambda: Standardize Lambda API (#2876) (6446b78)
- logs: API cleanups (#2909) (06221ac)
- secretsmanager: API cleanups (#2908) (60f46c8)
- ssm: API cleanups (#2904) (bd1bcf5)
- clean up API for removal policy across the library (#2893) (65014ab)
- sns: move subscribers to
- events: clean up Events APIs (#2840) (1e23921), closes #2840
- iam: cleanup of IAM library (#2823) (b735d1c), closes #2823
- cli: Expose props in CFN resources and remove propertyOverrides (#2372) (#2372) (aa61dfb), closes #2100
- cli: deploy/destory require explicit stack selection if app contains more than a single stack (#2772) (118a716), closes #2731
- cli: Remove stack rename support (#2819) (0f30e39), closes #2670
- cloudformation: add option to restrict data returned AwsCustomResource (#2859) (a691900), closes #2825
- cloudformation: Add removalPolicy on CustomResource (#2770) (859248a)
- cloudfront: add Lambda associations (#2760) (b088c8c)
- codepipeline: final form of the CodeBuild Pipeline action. (#2716) (c10fc9a)
- core: show token creation stack trace upon resolve error (#2886) (f4c8dcd)
- ecs: add metrics for Fargate services (#2798) (acf015d)
- ecs-patterns: LoadBalancedFargateService - allow specifying containerName and role (#2764) (df12197)
- elasticloadbalancing: add crossZone load balancing (#2787) (192bab7), closes #2786
- lambda: Expose $LATEST function version (#2792) (55d1bc8), closes #2776
- s3: add CORS Property to S3 Bucket (#2101) (#2843) (1a386d8)
- s3: add missing storage classes and API cleanups (#2834) (5cd9609), closes #2708
- stepfunctions: add grantStartExecution() (#2793) (da32176)
- stepfunctions: add support for AmazonSageMaker APIs (#2808) (8b1f3ed), closes #1314
- stepfunctions: waitForTaskToken for Lambda, SQS, SNS (#2686) (d017a14), closes #2658 #2735
- formalize the concept of physical names, and use them for cross-environment CodePipelines. (#1924) (6daaca8)
- assets:
- assets:
- assets:
- lambda:
- assets-docker: The module has been renamed to aws-ecr-assets
- ecs: the property that specifies the type of EC2 AMI optimized for ECS was renamed to
- codebuild: the method addToRoleInlinePolicy in CodeBuild's Project class has been removed.
- dynamodb:
- dynamodb:
- dynamodb:
- dynamodb:
- ecs:
- secretsmanager:
- ssm:
- ssm:
- ssm:
- logs:
- logs:
- logs:
- logs:
- logs:
- logs:
- logs:
- apigateway:
- apigateway:
- apigateway:
- events:
- events:
- multiple modules have been changed to use
- core:
- core:
- core:
- ecr:
- kms:
- logs:
- logs:
- rds:
- rds:
- codebuild: rename BuildSource to Source, S3BucketSource to S3Source, BuildArtifacts to Artifacts, S3BucketBuildArtifacts to S3Artifacts
- codebuild: the classes CodePipelineBuildSource, CodePipelineBuildArtifacts, NoBuildSource, and NoBuildArtifacts have been removed
- codebuild: rename buildScriptAsset and buildScriptAssetEntrypoint to buildScript and buildScriptEntrypoint, respectively
- cli: All L1 ("Cfn") Resources attributes are now prefixed with
- codepipeline: the property designating the name of the stage when creating a CodePipeline is now called
- codepipeline: the output and extraOutputs properties of the CodeBuildAction were merged into one property, outputs.
- lambda:
- Renamed
- Removed
- Removed
- Removed
- Stopped exporting
- cli: if an app includes more than one stack "cdk deploy" and "cdk destroy" now require that an explicit selector will be passed. Use "cdk deploy '*'" if you want to select all stacks.
- iam:
- iam: rename
- iam:
- iam:
- iam:
- iam:
- iam:
- s3:
- s3:
- codepipeline:
- codebuild: buildSpec argument is now a
- lambda:
- core: multiple changes to the
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- cli: The CLI no longer accepts
- sns: using a queue, lambda, email, URL as SNS Subscriber now
- ecs-patterns: Renamed QueueWorkerService for base, ec2 and fargate to QueueProcessingService, QueueProcessingEc2Service, and QueueProcessingFargateService.
- iam:
- s3:
- codebuild:
-
0.34.0 - 2019-06-10
- build: Correct buildspec so it does not fail (#2737) (e362ac8)
- certificatemanager: correct certificateArn typo in the README (#2712) (2bfc1c2)
- cli: don't fail if region cannot be determined (#2721) (0c72ef3), closes #2697
- cli: remove support for applets (#2691) (0997ee2)
- cloudwatch: move SNS Alarm Action to
- codebuild: grant the Project's Role permissions to the KMS Key if it was passed. (#2715) (4e12fe6)
- core: apply overrides after rendering properties (#2685) (f2636e5), closes #2677
- core: Make filterUndefined null-safe (#2789) (e4fb811), closes awslabs/jsii#523
- ecs: remove LoadBalancedFargateServiceApplet, no longer supported (#2779) (a610017)
- ecs-patterns: expose service on queue worker services (#2780) (6d83cb9)
- pkglint: Adjust stability banner style (#2768) (da94d8b)
- route53: support zone roots as record names (#2705) (08a2852)
- stepfunctions: improve Task payload encoding (#2706) (1c13faa)
- Construct props must not use the 'any' type (awslint:props-no-any) (#2701) (cb2b334), closes #2673
- remove deprecated modules (#2693) (421bf6d)
- core: improvements to Construct API (#2767) (3f7a0ad), closes #1934 #2766
- core: misc cleanups to App-related APIs (#2731) (b2e1964), closes #1891 #2750
- kms: Rename EncryptionKeyAlias to Alias (#2769) (da8e1d5)
- core: node.defaultChild as a shortcut to escape hatch (#2684) (8cd3c23), closes #2290
- core+cli: support tagging of stacks (#2185) (d0e19d5), closes #932
- event-targets: add support for fargate/awsvpc tasks (#2707) (2754dde)
- events: support SQS queues as rule targets (#2683) (078e34a), closes #1786
- rds: add engineVersion to DatabaseCluster (#2698) (0593d51), closes #2212
- rds: add support for database instances (#2187) (b864041), closes #2075 #1693
- route53: improve constructs for basic records (#2741) (696f53f)
- s3: default to KMS if encryptionKey is specified (#2719) (ae4a04f), closes #2714
- tokens: enable type coercion (#2680) (0f54698), closes #2679
- route53:
- kms: The
- cli: This release requires CDK CLI >= 0.34.0
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- core:
- cloudwatch: using an SNS topic as CloudWatch Alarm Actxion now
- event-targets:
- SNS - Subscription
- Step Functions -
- the following modules are no longer released:
- cli: applets are no longer supported as an app type, use "decdk" instead.
- core: Properties passed to
- rds:
- rds:
-
0.33.0 - 2019-05-30
- core: Fn.cidr should return a list and not a string (#2678) (9d2ea2a), closes #2671
- cli: fix ts-node usage on Windows (#2660) (5fe0af5)
- cli: make
- cli: correctly pass build args to docker build (#2634) (9c58d6f)
- core: hide
- autoscaling: move lifecycle hook targets to their own module (#2628) (b282132), closes #2447
- codepipeline: no longer allow providing an index when adding a Stage to a Pipeline. (#2624) (ce39b12)
- codepipeline-actions: correctly serialize the userParameters passed to the Lambda invoke Action. (#2537) (ceaf54a)
- cx-api: improve compatibility messages for cli <=> app (#2676) (38a9894)
- ecs: move high level ECS constructs into aws-ecs-patterns (#2623) (f901313)
- logs: move log destinations into 'aws-logs-destinations' (#2655) (01601c2), closes #2444
- s3: move notification destinations into their own module (#2659) (185951c), closes #2445
- cli: decouple "synth" and "deploy" through cloud assemblies (#2636) (c52bcfc), closes #1893 #2093 #1954 #2310 #2073 #1245 #341 #956 #233 #2016
- acm: allow specifying region for validated certificates (#2626) (1a7d4db)
- apigateway: support for UsagePlan, ApiKey, UsagePlanKey (#2564) (203f114), closes #723
- autoscaling: allow setting spotPrice (#2571) (d640055), closes #2208
- cfn: update CloudFormation spec to v3.3.0 (#2669) (0f553ee)
- cli: disable
- cloudformation: aws-api custom resource (#1850) (9a48b66)
- cloudwatch: support all Y-Axis properties (#2406) (8904c3e), closes #2385
- logs: using a Lambda or Kinesis Stream as CloudWatch log subscription destination now requires an integration object from the
- codepipeline-actions: removed the
- cli:
- cli:
- cli:
- assets: Assets (e.g. Lambda code assets) are now referenced relative to the output directory.
- assert:
- cx-api:
- core:
- s3: using a Topic, Queue or Lambda as bucket notification destination now requires an integration object from the
- autoscaling: using a Topic, Queue or Lambda as Lifecycle Hook Target now requires an integration object from the
- codepipeline: the property atIndex has been removed from the StagePlacement interface.
- aws-ecs: These changes move all L3 and higher constructs out of the aws-ecs module into the aws-ecs-patterns module. The following constructs have been moved into the aws-ecs-patterns module:
- cloudwatch: rename
-
0.32.0 - 2019-05-24
- update all 'onXxx' methods to be CloudWatch Events (#2609) (28942d2), closes #2278
- appscaling: fix StepScaling (#2522) (1f004f6)
- aws-ecs: allow linux parameters to be settable (#2397) (417e5e8), closes #2380
- aws-glue: fix glue tableArn and integer schema name (#2585) (99e173e)
- cdk: CfnMapping.findInMap with tokens (#2531) (756e2b6), closes #1363
- cloudfront: Use regional endpoint for S3 bucket origins (64c3c6b)
- codebuild: correctly pass the VPC subnet IDs to the Policy Statement's condition when using a VPC. (#2506) (145da28), closes #2335
- codecommit: add a Repository.fromRepositoryName() method. (#2515) (6fc3718), closes #2514
- codedeploy: change the load balancer API in server Deployment Group. (#2548) (8e05d49), closes #2449
- codepipeline: correctly validate Artifacts used by Actions in the same Stage. (#2558) (cfe46f6), closes #2549
- core: Correctly search for loaded modules in node 12 (#2612) (286866a), closes nodejs/node#27583
- ec2: allow disabling privateDnsEnabled on VPCs (#2596) (4d2fbe9), closes #2556
- ec2: fix VPC endpoint name for SageMaker Notebooks (#2598) (aec8ec2)
- iam: allow CompositePrincipal construction with spread (#2507) (eb13741)
- lambda: compare Runtimes by value instead of identity (#2543) (584579e)
- lambda: deprecate old Lambda runtimes (#2594) (20f4ec1)
- route53-targets: move Alias Targets into their own package (#2617) (f40fe98), closes #2448
- s3: Make IBucket.arnForObject accept only (exactly) one key pattern (5ac6e77)
- remove "export"s and normalize resource names (#2580) (68efa04), closes #2577 #2578 #2458 #2419 #2579 #2313 #2551
- use construct interfaces in public api (awslint:ref-via-interface) (#2499) (f9c6ad6), closes #2412
- assets: Add deploy-time content hash (#2334) (9b4db42), closes #1400
- aws-cdk: use ts-node for TypeScript templates (#2527) (4f7b48d), closes #1532
- aws-codepipeline: Pipeline now accepts existing IAM role (#2587) (eb35807), closes #2572
- aws-ecs: add ECS/Fargate QueueWorkerService constructs (#2568) (7dd0e1a)
- aws-ecs: include GPU & ARM based ECS optimized AMI options (#2453) (45abfcd)
- aws-ecs-patterns: add ScheduledEc2Task L3 construct (#2336) (b9cbb6a)
- cdk: support encoding Tokens as numbers (#2534) (b9eeaa0), closes #1455
- cli: Add javascript for init-templates/app (#2525) (2c5676a), closes #398
- cli: add javascript init-templates 'sample-app' (#2535) (67960f8)
- codebuild: add support for local cache modes (#2529) (e7ad990), closes #1956
- codebuild: rename standard 1.0 image and add standard 2.0 image (#2541) (e4e24ab), closes #2306
- config: AWS Config, Managed and Custom rules (#2326) (deed353)
- ecs: allow to specify log retention for aws log driver (#2511) (1feda0c)
- events: group CW Event Targets in module (#2576) (7cb8e5e), closes #2403 #2404 #2581
- lambda: add NodeJS10x runtime (#2544) (553577a)
- s3: add MetricsConfiguration Property to S3 Bucket (#2163) (1cc43b3)
- stepfunctions: add service integrations (#1646) (e4ac767)
- stepfunctions: ExecutionTime metric (#2498) (84fda45)
- toolkit: allow to pass build args to docker build (#2604) (c51596e)
- toolkit: show when new version is available (#2484) (6cf4bd3), closes #297
- route53-targets: using a CloudFront Distribution or an ELBv2
- s3: The
- All
- kms:
- ec2:
- ec2:
- cloudtrail:
- Deleted a few
- ecs:
- servicediscovery:
- glue:
- ec2:
- ec2:
- iam:
- codedeploy: the type of the
- apigateway:
- cloudfront:
- codedeploy:
- codepipeline:
- codepipeline:
- ec2:
- ec2:
- ecs:
- lambda:
- lambda:
- stepfunctions:
- cloudwatch-events: the events API has been significantly re-worked
⚠️ This new API is still being discussed (see #2609) and might change again in the next release!
- All
- CloudWatch:
- AutoScaling:
- LambdaDeploymentGroup
- UserPool:
- all
- Repository:
- Bucket:
-
0.31.0 - 2019-05-07
- aws-ecs: expose readonly service on LoadBalancedEc2Service (#2395) (52af870), closes #2378
- ecs: correct logic of healthcheck command (#2462) (fa29d3b), closes #2461
- ecs: fix memoryReservationLimit in LoadBalancedEcsService (#2463) (6b50927), closes #2263
- lambda: allow grantInvoke with principals (#2391) (b3792aa)
- update jsii to 0.10.5 (#2482) (e4ec30a)
- update jsii to v10.0.4 (#2479) (1df4e2d), closes #2478
- convert "import" to "from" methods (#2456) (862ed7b), closes #2450 #2428 #2424 #2429 #2425 #2422 #2423 #89
- bootstrap: allow specifying the toolkit staging bucket name (#2407) (3bfc641), closes #2390
- codebuild: add webhook Filter Groups. (#2319) (fd74d07), closes #1842
- elbv2: add fixed response support for application load balancers (#2328) (750bc8b)
- all
- all
-
0.30.0 - 2019-05-02
- cdk-dasm: fix bin for cdk-dasm (#2383) (760f518)
- awslint: construct-base-is-private, resource-attribute (#2349) (973b506), closes #2426 #2409
- cdk-test: check API compatibility (#2356) (1642925), closes #145
- codepipeline: allow creation of GitHub Pipelines without source trigger (#2332) (ed39a8c)
- elbv2: add TLS listener for NLB (#2122) (71d694f)
- codepipeline: the
-
0.29.0 - 2019-04-24
- acm: enabled validation of certificates on the zone name (#2133) (f216f96)
- aws-apigateway: add integrationHttpMethod prop to AwsIntegration (#2160) (dfc6665), closes #2105
- aws-cloudwatch: remove workaround on optional DashboardName (6c73d8a), closes #213
- aws-ecs: fix default daemon deploymentConfig values (#2210) (c2e806b), closes #2209
- aws-ecs: handle long ARN formats for services (#2176) (66df1c8), closes #1849
- aws-lambda: fix circular dependency with lambda and codedeploy (#2236) (382da6a)
- certificatemanager: remove bundled lambda devdependencies (#2186) (6728b41)
- codebuild: add validation for Source when the badge property is true (#2242) (07812b2), closes #1749
- core: allow CfnMapping.findInMap to use pseudo functions/params (#2220) (464cb6f), closes #1363
- core: Use different symbol for Stack.isStack versus CfnReference.isCfnReference (#2305) (c1e41ed)
- decdk: set the timeout in the schema tests to 10 seconds. (#2250) (8521b6f)
- dynamodb: remove global secondary index limit (#2301) (43afa3a), closes #2262
- ecr: Fix typo in ImportRepository error message (#2217) (b7c9b21)
- elasticloadbalancingv2: dependency between ALB and logging bucket (#2221) (99e085d), closes #1633
- java-app-template: invoke
- lambda: avoid OperationAbortedException when using log retention (#2237) (12a118c)
- s3: Add validations for S3 bucket names (#2256) (f810265), closes #1308
- servicediscovery: allow to register multiple instances on a service (#2207) (9f88696)
- toolkit: don't fail when terminal width is 0 (#2355) (9c2220c), closes #2253
- toolkit: fix broken confirmation prompt (#2333) (4112c84)
- toolkit: options requiring arguments fail if not supplied (#2197) (0f6ce56), closes #2192
- toolkit: remove metadata warning if region does not have resource (#2216) (22ed67c)
- toolkit: stop 'cdk doctor' from printing AWS_ variables (#2357) (6209c6b), closes #1931
- codebuild: remove oauthToken property from source (#2252) (8705af3), closes #2252 #2199
- aws-ec2: correct InstanceSize.Nano spelling (#2215) (d22a154), closes #2215 #2214
- aws-dynamodb-global: global dynamodb tables (experimental) (#2251) (ec367c8)
- aws-events-targets: centralized module for cloudwatch event targets (#2343) (1069938)
- cdk-dasm: generate cdk code from cloudformation (#2244) (b707782)
- cloudwatch: add support for time ranges in dashboards (#2248) (18c1723)
- codebuild: add support for more images (#2233) (87b1ea0), closes #2079
- codepipeline: add ECS deploy Action. (#2050) (d46b814), closes #1386
- codepipeline: change to stand-alone Artifacts. (#2338) (b778e10)
- codepipeline: make the default CodePipeline Bucket have an encryption key (#2241) (ef9bba5), closes #1924
- core: verify CfnOutput has a value and fix VPC export (#2219) (9e87661), closes #2012
- events-targets: LambdaFunction (#2350) (48d536b), closes #1663
- ec2: add support for vpc endpoints (#2104) (bbb3f34)
- lambda: introduce a new kind of
- cfnspec: update CloudFormation resources to v2.30.0 (#2239) (aebcde5)
- toolkit: stage assets under .cdk.assets (#2182) (2f74eb4), closes #1716 #2096
- cloudwatch: Renamed
- codepipeline: CodePipeline Actions no longer have the
- codepipeline:
- codepipeline:
- codepipeline: The classes
- codepipeline: The classes
- events-targets:
- aws-events-targets:
- codebuild:
- core: the
- stepfunctions: In
- codedeploy: In
- cloudformation: In
- cloudformation:
- ssm:
- codepipeline: customers who use GitHub, GitHubEnterprise or Bitbucket as source will need to remove the oauthToken field as it's no longer available.
- codebuild: change the default image from UBUNTU_14_04_BASE to UBUNTU_18_04_STANDARD.
- ec2:
- ec2: *
- You will not be able to combine jsii libraries written against previous versions of jsii with this version of the CDK.
-
0.28.0 - 2019-04-04
-
-
-
- cdk: introduce SecretValue to represent secrets (#2161) (a3d9f2e)
- codepipeline: move all of the Pipeline Actions to their dedicated package. (#2098) (b314ecf)
- codepipeline: re-factor the CodePipeline Action
- ec2: support reserving IP space in VPCs (#2090) (4819ff4)
- Add python support to cdk init (#2130) (997dbcc)
- ecs: support AWS Cloud Map (service discovery) (#2065) (4864cc8), closes #1554
- lambda: add a
- update CloudFormation resource spec to v2.29.0 (#2170) (ebc490d)
- The
- The following prop types have been changed from
- The class
- The class
- core: Replace use of
- codepipeline: this changes the package of all CodePipeline Actions to be aws-codepipeline-actions.
- codepipeline: this moves all classes from the aws-codepipeline-api package to the aws-codepipeline package.
- codepipeline: this changes the CodePipeline Action naming scheme from .PipelineAction (s3.PipelineSourceAction) to codepipeline_actions.Action (codepipeline_actions.S3SourceAction).
-
0.27.0 - 2019-03-28
- Python support (experimental)
- You can now run the CLI through
- Make sure to go through the BREAKING CHANGES section below
- autoscaling: verify public subnets for associatePublicIpAddress (#2077) (1e3d41e)
- ec2: descriptive error message when selecting 0 subnets (#2025) (0de2206), closes #2011
- lambda: use Alias ARN directly (#2091) (bc40494)
- rds: remove Instance class (#2081) (6699fed)
- secretsmanager: allow templated string creation (#2010) (4e105a3)
- secretsmanager/ssm: verify presence of parameter name (#2066) (b93350f)
- serverless: rename aws-serverless to aws-sam (#2074) (4a82f13)
- stepfunctions: make Fail.error optional (#2042) (86e9d03)
- readonly struct properties and hide internals (#2106) (66dd228), closes awslabs/cdk-ops#321
- toolkit:: new 'cdk' package to allow executing the cli through
- Python Support (#2009) (e6083fa)
- core: present reason for cyclic references (#2061) (e82e208)
- lambda: add support for log retention (#2067) (63132ec), closes #667 #667
- rds: cluster retention, reference KMS key by object (#2063) (99ab46d)
- secretsmanager/rds: support credential rotation (#2052) (bf79c82)
- toolkit: introduce the concept of auto-deployed Stacks. (#2046) (abacc66)
- lambda:
- core:
- rds: replaced
- autoscaling:
- serverless: renamed
- ec2:
- All properties of all structs (interfaces that do not begin with an "I") are now readonly since it is passed by-value and not by-ref (Python is the first language to require that). This may impact code in all languages that assumed it is possible to mutate these structs. Let us know if this blocks you in any way.
-
0.26.0 - 2019-03-20
- aws-cdk: fix VpcNetwork.importFromContext() (#2008) (e1a1a7b), closes #1998
- aws-cdk: update F# template to latest CDK version (#2006) (bda12f2)
- cdk: merge cloudFormation tags with aspect tags (#1762) (bfb14b6), closes #1725
- cfn2ts: properly de-Tokenize L1 string-arrays (#2033) (1e50383), closes #2030
- core: allow embedding condition expression as strings (#2007) (6afa87f), closes #1984
- ecs: make TaskDefinition accept IRoles (#2034) (f32431a), closes #1925
- lambda: expose underlying function's role on the alias (#2024) (de296de)
- stepfunctions: Actually perform rendering of NotCondition (06b59d9)
- toolkit: 'cdk deploy' support updates to Outputs (#2029) (23509ae), closes #778
- toolkit: increase number of retries (#2053) (133dc98), closes #1647
- rename core classes adding a Cfn prefix (#1960) (5886bf6), closes #1462 #288
- name "toCloudFormation" internal (renamed to
- aws-cdk: support fixed repository name for DockerImageAsset (#2032) (942f938)
- aws-rds: ability to add an existing security group to RDS cluster (#2021) (1f24336)
- cfn2ts: make cfn2ts output TSDoc-compatible docblocks (#2000) (c6c66e9)
- cfnspec: update to version 2.28.0 (#2035) (6a671f2)
- cloudformation: allow specifying additional inputs for deploy Actions (#2020) (2d463be), closes #1247
- core: can use Constructs to model applications (#1940) (32c2377), closes #1479
- ecs: support private registry authentication (#1737) (11ed691), closes #1698
- glue: add L2 resources for
- region-info: Model region-specific information (#1839) (946b444), closes #1282
- servicediscovery: AWS Cloud Map construct library (#1804) (1187366)
- ses: add constructs for email receiving (#1971) (3790858)
- add more directories excluded and treated as source in the JetBrains script. (#1961) (a1df717)
- “toCloudFormation” is now internal and should not be called directly. Instead use “app.synthesizeStack”
- ecs:
- rename Condition to CfnCondition.
- rename StackElement to CfnElement.
- rename Parameter to CfnParameter.
- rename Resource to CfnResource.
- rename Output to CfnOutput.
- rename Mapping to CfnMapping.
- rename Referenceable to CfnRefElement.
- rename IConditionExpression to ICfnConditionExpression.
- rename CfnReference to Reference.
- rename Rule to CfnRule.
-
0.25.3 - 2019-03-12
-
0.25.2 - 2019-03-07
-
0.25.1 - 2019-03-05
-
0.25.0 - 2019-02-28
-
0.24.1 - 2019-02-07
from @aws-cdk/cdk GitHub release notesBug Fixes
cdk context(#2870) (b8a1c8e), closes #2854Code Refactoring
nameinStagePropstostageName. (#2882) (be574a1)hwTypetohardwareType(#2916) (1aa0589), closes #2896aws-sns-subscribers(#2804) (9ef899c)Features
BREAKING CHANGES
AssetProps.packaginghas been removed and is now automatically discovered based on the file type.ZipDirectoryAssethas been removed, useaws-s3-assets.Asset.FileAssethas been removed, useaws-s3-assets.Asset.Code.directoryandCode.filehave been removed. UseCode.asset.hardwareTypefromhwType.TableOptions.pitrEnabledrenamed topointInTimeRecovery.TableOptions.sseEnabledrenamed toserverSideEncryption.TableOptions.ttlAttributeNamerenamed totimeToLiveAttribute.TableOptions.streamSpecificationrenamedstream.ContainerImage.fromAsset()now takes only build directorydirectly (no need to pass
scopeoridanymore).ISecret.secretJsonValuerenamed tosecretValueFromJson.ParameterStoreStringhas been removed. UseStringParameter.fromStringParameterAttributes.ParameterStoreSecureStringhas been removed. UseStringParameter.fromSecureStringParameterAttributes.ParameterOptions.namewas renamed toparameterName.newStreamrenamed toaddStreamand doesn't need a scopenewSubscriptionFilterrenamed toaddSubscriptionFilterand doesn't need a scopenewMetricFilterrenamed toaddMetricFilterand doesn't need a scopeNewSubscriptionFilterPropsrenamed toSubscriptionPropsNewLogStreamPropsrenamed toLogStreamOptionsNewMetricFilterPropsrenamed toMetricFilterOptionsJSONPatternrenamed toJsonPatternMethodOptions.authorizerIdis now calledauthorizerand accepts anIAuthorizerwhich is a placeholder interface for the authorizer resource.restapi.executeApiArnrenamed toarnForExecuteApi.restapi.latestDeploymentanddeploymentStageare now read-only.EventPattern.detailis now a map.scheduleExpression: stringis nowschedule: Schedule.cdk.RemovalPolicyto configure the resource's removal policy.
applyRemovalPolicyis nowCfnResource.applyRemovalPolicy.RemovalPolicy.Orphanhas been renamed toRetain.RemovalPolicy.Forbidhas been removed, useRetain.RepositoryProps.retainis nowremovalPolicy, and defaults toRetaininstead of remove since ECR is a stateful resourceKeyProps.retainis nowremovalPolicyLogGroupProps.retainLogGroupis nowremovalPolicyLogStreamProps.retainLogStreamis nowremovalPolicyDatabaseClusterProps.deleteReplacePolicyis nowremovalPolicyDatabaseInstanceNewProps.deleteReplacePolicyis nowremovalPolicyattrinstead of the resource type. For example, in S3bucket.bucketArnis nowbucket.attrArn.propertyOverrideshas been removed from all "Cfn" resources, insteadusers can now read/write resource properties directly on the resource class. For example, instead of
lambda.propertyOverrides.runtimejust uselambda.runtime.stageNameinstead ofnameFunction.addLayertoaddLayersand made it variadicIFunction.handlerpropertyIVersion.versionArnproperty (the value is atfunctionArn)SingletonLayerVersionLogRetentionPolicyStatementno longer has a fluid API, and accepts aprops object to be able to set the important fields.
ImportedResourcePrincipaltoUnknownPrincipal.managedPolicyArnsrenamed tomanagedPolicies, takesreturn value from
ManagedPolicy.fromAwsManagedPolicyName().PolicyDocument.postProcess()is now removed.PolicyDocument.addStatement()renamed toaddStatements.PolicyStatementis no longerIResolvable, call.toStatementJson()to retrieve the IAM policy statement JSON.
AwsPrincipalhas been removed, useArnPrincipalinstead.s3.StorageClassis now an enum-like class instead of a regularenum. This means that you need to call
.valuein order to obtain it's value.s3.Coordinatesrenamed tos3.LocationArtifact.s3Coordinatesrenamed toArtifact.s3Location.BuildSpecobject.lambda.Runtime.NodeJS*are nowlambda.Runtime.Nodejs*StackAPIstack.namerenamed tostack.stackNamestack.stackNamewill return the concrete stack name. UseAws.stackNameto indicate { Ref: "AWS::StackName" }.stack.accountandstack.regionwill return the concrete account/region only if they are explicitly specified when the stack is defined (under theenvprop). Otherwise, they will return a token that resolves to the AWS::AccountId and AWS::Region intrinsic references. UseContext.getDefaultAccount()andContext.getDefaultRegion()to obtain the defaults passed through the toolkit in case those are needed. UseToken.isUnresolved(v)to check if you have a concrete or intrinsic.stack.logicalIdhas been removed. Usestack.getLogicalId()stack.envhas been removed, usestack.account,stack.regionandstack.environmentinsteadstack.accountIdrenamed tostack.account(to allow treating account more abstractly)AvailabilityZoneProvidercan now be accessed throughContext.getAvailabilityZones()SSMParameterProvidercan now be accessed throughContext.getSsmParameter()parseArnis nowArn.parsearnFromComponentsis nowarn.formatnode.lockandnode.unlockare now privatestack.requireRegionandrequireAccountIdhave been removed. UseToken.unresolved(stack.region)insteadstack.parentApphave been removed. UseApp.isApp(stack.node.root)instead.stack.missingContextis now privatestack.renameLogicalhave been renamed tostack.renameLogicalIdIAddressingScheme,HashedAddressingSchemeandLogicalIDsare now internal. OverrideStack.allocateLogicalIdto customize how logical IDs are allocated to resources.--rename, and the stacknames are now immutable on the stack artifact.
requires an integration object from the
@aws-cdk/aws-sns-subscriberspackage.
roleNameinRolePropsis now of typePhysicalNamebucketNameinBucketPropsis now of typePhysicalNameroleNameinRolePropsis now of typePhysicalNameBug Fixes
aws-cloudwatch-actions(#2688) (e3df21a)Code Refactoring
Features
BREAKING CHANGES
recordValue: stringprop inroute53.TxtRecordchanged tovalues: string[]recordValueprop inroute53.CnameRecordrenamed todomainNameroute53.AliasRecordhas been removed, useroute53.ARecordorroute53.AaaaRecordwith thetargetprop.EncryptionKeyAliasclass was renamed toAlias.Associated types (such as
EncryptionKeyAliasProps) were renamed in thesame way.
App.run()was renamed toApp.synth()(soft deprecation, it will be removed in the next release).node.stackis nowStack.of(construct)(fixes #2766)node.resolvehas been moved tostack.resolve.node.stringifyJsonhas been moved tostack.stringifyJson.node.validateTreeis nowConstructNode.validate(node)node.prepareTreeis nowConstructNode.prepare(node)node.getContextis nownode.tryGetContextnode.recordReferenceis nownode.addReferencenode.applyis nownode.applyAspectnode.ancestors()is nownode.scopesnode.requiredhas been removed.node.typenamehas been removed.node.addChildis now privatenode.findReferences()is nownode.referencesnode.findDependencies()is nownode.dependenciesstack.dependencies()is nowstack.dependenciesCfnElement.stackPathhas been removed.CloudFormationLangis now internal (usestack.toJsonString())requires an integration object from the
@aws-cdk/aws-cloudwatch-actionspackage.
targets.EcsEc2Taskrenamed totargets.EcsTaskendpointis now typestring(previouslyany)resultin the Pass state is now typemap(previouslyany)@aws-cdk/applet-js,@aws-cdk/aws-autoscaling-api,@aws-cdk/aws-codedeploy-apiaddPropertyOverrideshould match in capitalization to the CloudFormation schema (normally pascal case). For example,addPropertyOverride('accessControl', 'xxx')should now beaddPropertyOverride('AccessControl', 'xxx').rds.RotationSingleUserrenamed tords.SecretRotationrds.ClusterParameterGroupno longer hassetParameter()andremoveParameter()methods, use the parameters prop directly in the constructor instead.IMPORTANT: apps created with the CDK version 0.33.0 and above cannot be used with an older CLI version.
Bug Fixes
cdk docsopen the new API reference (#2633) (6450758)dependencyRootsfrom public API (#2668) (2ba5ad2), closes #2348Features
noUnusedLocalsandnoUnusedParametersfrom typescript templates (#2654) (b061826)BREAKING CHANGES
@aws-cdk/aws-logs-destinationspackage.addPutJobResultPolicyproperty when creating LambdaInvokeAction.--interactivehas been removed--numberedhas been removed--stagingis now a boolean flag that indicates whether assets should be copied to the--outputdirectory or directly referenced (--no-stagingis useful for e.g. local debugging with SAM CLI)SynthUtils.templateForStackNamehas been removed (useSynthUtils.synthesize(stack).template).cxapi.SynthesizedStackrenamed tocxapi.CloudFormationStackArtifactwith multiple API changes.cdk.App.run()now returns acxapi.CloudAssemblyinstead ofcdk.ISynthesisSession.@aws-cdk/aws-s3-notificationspackage.@aws-cdk/aws-autoscaling-hooktargetspackage.EcsQueueWorkerService,FargateQueueWorkerService,LoadBalancedEcsService,LoadBalancedFargateServiceandLoadBalancedFargateServiceApplets.leftAxisRange=>leftYAxis,rightAxisRange=>rightYAxis, renameYAxisRange=>YAxisProps.Bug Fixes
Code Refactoring
Features
BREAKING CHANGES
Load Balancer as an Alias Record Target now requires an integration
object from the
@aws-cdk/aws-route53-targetspackage.IBucket.arnForObjectmethod no longerconcatenates path fragments on your behalf. Pass the
/-concatenatedkey pattern instead.
exportmethods from all AWS resources have been removed. CloudFormation Exports are now automatically created when attributes are referenced across stacks within the same app. To export resources manually, you can explicitly define aCfnOutput.kms.EncryptionKeyrenamed tokms.Keyec2.VpcNetworkrenamed toec2.Vpcec2.VpcSubnetrenamed toec2.Subnetcloudtrail.CloudTrailrenamedtocloudtrail.Trail`XxxAttributeandXxxImportPropsinterfaces which were no longer in used after their correspondingexportmethod was deleted and there was no use for them in imports.ecs.ClusterAttributesnow acceptsIVpcandISecurityGroupinstead of attributes. You can use theircorresponding
fromXxxmethods to import them as needed.servicediscovery.CnameInstance.instanceCnamerenamed tocname.glue.IDatabase.locationUrlis now only inglue.Database(not on the interface)ec2.TcpPortFromAttributeandUdpPortFromAttributeremoved. UseTcpPortandUdpPortwithnew Token(x).toNumberinstead.ec2.VpcNetwork.importFromContextrenamed toec2.Vpc.fromLookupiam.IRole.roleIdhas been removed from the interface, butRole.roleIdis still available for owned resources.loadBalancerproperty in ServerDeploymentGroupProps has been changed.apigateway.ResourceBase.trackChildis now internal.cloudfront.S3OriginConfig.originAccessIdentityis noworiginAccessIdentityIdcodedeploy.LambdaDeploymentGroup.alarmsis nowcloudwatch.IAlarm[](previouslycloudwatch.Alarm[])codepipeline.crossRegionScaffoldingStacksrenamed tocrossRegionScaffoldingcodepipeline.CrossRegionScaffoldingStackrenamed tocodepipeline.CrossRegionScaffoldingand cannot be instantiated (abstract)ec2.VpcSubnet.addDefaultRouteToNATrenamed toaddDefaultNatRouteand made publicec2.VpcSubnet.addDefaultRouteToIGWrenamed toaddDefaultInternetRoute, made public and first argument is the gateway ID (string) and not the CFN L1 classecs.Ec2EventRuleTarget.taskDefinitionis nowITaskDefinition(previouslyTaskDefinition)lambda.IEventSource.bindnow acceptsIFunctioninstead ofFunctionBase. UseIFunction.addEventSourceMappingto add an event source mapping under the function.lambda.Layer.grantUsagerenamed tolambda.layer.addPermissionand returns voidstepfunctions.StateMachine.roleis nowiam.IRole(previouslyiam.Role)onXxx()CloudWatch Event methods now have the signature:onAlarmwas renamed toaddAlarmActiononOkwas renamed toaddOkActiononInsufficientDatawas renamed toaddInsufficientDataActiononLifecycleTransitionwas renamed toaddLifecycleHookonPreHookwas renamed toaddPreHookonPostHookwas renamed toaddPostHookonXxxwere renamed toaddXxxTriggeronImagePushedwas renamed toonCloudTrailImagePushedonEventwas renamed toaddEventNotificationonObjectCreatedwas renamed toaddObjectCreatedNotificationonObjectRemovedwas renamed toaddObjectRemovedNotificationonPutObjectwas renamed toonCloudTrailPutObjectBug Fixes
Code Refactoring
Features
BREAKING CHANGES
Foo.importstatic methods are nowFoo.fromFooAttributesFooImportPropsstructs are now calledFooAttributesstepfunctions.StateMachine.exporthas been removed.ses.ReceiptRule.nameis nowses.ReceiptRule.receiptRuleNameses.ReceiptRuleSet.nameis nowses.ReceiptRuleSet.receiptRuleSetNamesecretsmanager.AttachedSecretis now calledsecretsmanager.SecretTargetAttachmentto match service semanticsecr.Repository.exporthas been removeds3.Bucket.bucketUrlis now calleds3.Bucket.bucketWebsiteUrllambda.Version.functionVersionis now calledlambda.Version.versionec2.SecurityGroup.groupNameis nowec2.SecurityGroup.securityGroupNamecognito.UserPoolClient.clientIdis nowcognito.UserPoolClient.userPoolClientIdapigateway.IRestApiResourceis nowapigateway.IResourceapigateway.IResource.resourcePathis nowapigateway.IResource.pathapigateway.IResource.resourceApiis nowapigateway.IResource.restApiBug Fixes
Code Refactoring
Features
BREAKING CHANGES
s3.Bucket.domainNamerenamed tos3.Bucket.bucketDomainName.codedeploy.IXxxDeploymentConfig.deploymentConfigArnis now a property and not a method.ec2.SecurityGroupBaseis now privateec2.VpcNetworkBaseis now privatekinesis.StreamBaseis now privatekms.EncryptionKeyBaseis now privatelogs.LogGroupBaseis now privatessm.ParameterBaseis now privateeks.ClusterBaseis now privatecodebuild.ProjectBaseis now privatecodecommit.RepositoryBaseis now privatecodedeploy.ServerDeploymentGroupBaseis now privateeks.ClusterBaseis now privatelambda.LayerVersionBaseis now privaterds.DatabaseClusterBaseis now privatesecretsmanager.SecretBaseis now privateses.ReceiptRuleSetBaseis now privatepollForSourceChangesproperty inGitHubSourceActionhas been renamed totrigger, and its type changed from abooleanto an enum.Bug Fixes
app.run()(#2300) (47ff448), closes #2289 awslabs/jsii#456Features
Code,CfnParametersCode. (#2027) (4247966)BREAKING CHANGES
MetricCustomizationtoMetricOptions.outputArtifactandoutputArtifactsproperties.inputArtifact(s)andadditionalInputArtifactsproperties were renamed toinput(s)andextraInputs.outputArtifactName(s)andadditionalOutputArtifactNamesproperties were renamed tooutput(s)andextraOutputs.CodeBuildBuildActionandCodeBuildTestActionwere merged into one classCodeBuildAction.JenkinsBuildActionandJenkinsTestActionwere merged into one classJenkinsAction.lambda.Functionno longer implementsIEventRuleTarget. Instead, use@aws-cdk/aws-events-targets.LambdaFunction.sns.Topicno longer implementsIEventRuleTarget. Use@aws-cdk/aws-events-targets.SnsTopicinstead.codebuild.Projectno longer implementsIEventRuleTarget. Use@aws-cdk/aws-events-targets.CodeBuildProject.cdk.Rootconstruct has been removed. Usecdk.Appinstead.stepfunctions.WaitProps: the propsseconds,timestamp,secondsPathandtimestampPathare nowdurationof a union-like classWaitDuration(e.g.duration: WaitDuration.seconds(n))codedeploy.ServerDeploymentConfigProps: the propsminHealthyHostCountandminHealthyHostPercentageare nowminimumHealthyHostsof union-like classMinimumHealthyHosts(e.g.minimumHealthyHosts: MinimumHealthyHosts.percentage(50))cloudformation.CustomResourceProps: the propstopicProviderandlambdaProviderare nowproviderof union-like classCustomResourceProvider(e.g.CustomResourceProvider.lambda(fn)cloudformation.CustomResourceno longer extendsCfnCustomResource.ssm.ParameterPropsrenamed tossm.ParameterOptions.aws-ec2.InstanceSize.Nonewas renamed toInstanceSize.Nanovpc.selectSubnetIds(...)has been replaced withvpc.selectSubnets(...).subnetIds.Bug Fixes
aws-ecs: use executionRole for event rule target (#2165) (aa6f7bc), closes #2015
core: remove cdk.Secret (#2068) (b53d04d), closes #2064
feat(aws-iam): refactor grants, add OrganizationPrincipal (#1623) (1bb8ca9), closes #1623 #236
Code Refactoring
Features
bindmethod to take a Role separately from the Pipeline. (#2085) (ffe0046)newVersionmethod. (#2099) (6fc179a)BREAKING CHANGES
secretsmanager.SecretStringclass has been removed in favor ofcdk.SecretValue.secretsManager(id[, options])stringtocdk.SecretValue:codepipeline-actions.AlexaSkillDeployAction.clientSecret,codepipeline-actions.AlexaSkillDeployAction.refreshToken,codepipeline-actions.GitHubSourceAction.oauthToken,iam.User.passwordsecretsmanager.Secret.stringValueandjsonFieldValuehave been removed. Usesecretsmanage.Secret.secretValueandsecretJsonValueinstead.secretsmanager.Secret.secretStringhave been removed. Usecdk.SecretValue.secretsManager()orsecretsmanager.Secret.import(..).secretValue.cdk.Secrethas been removed. Usecdk.SecretValueinstead.cdk.DynamicReferenceis no longer a construct, and it's constructor signature was changed and was renamedcdk.CfnDynamicReference.grant(function.role)andgrant(project.role)are nowgrant(function)andgrant(role).cdk.Secretwithsecretsmanager.SecretString(preferred) orssm.ParameterStoreSecureString.Highlights
npx cdkBug Fixes
Code Refactoring
Features
npx cdk(#2113) (32bca05)BREAKING CHANGES
cloudWatchLogsRetentionTimeDaysin@aws-cdk/aws-cloudtrailnow uses a
logs.RetentionDaysinstead of aLogRetention.stack._toCloudFormationmethod is now unavailable and is replaced by@aws-cdk/assert.SynthUtils.toCloudFormation(stack).kmsKeyArn: stringbykmsKey: kms.IEncryptionKeyinDatabaseClusterPropsVpcNetwork.isPublicSubnet()has been renamed toVpcNetwork.isPublicSubnetIds().aws-serverlesstoaws-samvpcPlacementhas been renamed tovpcSubnetson all objects,
subnetsToUsehas been renamed tosubnetType.natGatewayPlacementhas been renamed tonatGatewaySubnets.Bug Fixes
Code Refactoring
_toCloudFormation) (#2047) (515868b), closes #2044 #2016Features
DatabaseandTable(#1988) (3117cd3)BREAKING CHANGES
ContainerImage.fromDockerHubhas been renamed toContainerImage.fromRegistry.Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs