Releases: aws/aws-cdk
Releases · aws/aws-cdk
v0.20.0
Bug Fixes
- assert: Adjust assertion behavior to be stricter (#1289) (0919bf4), closes awslabs/cdk-ops#186
- aws-cdk: fix profile use in non-'aws' partitions (#1283) (5478913), closes #1262 #1109
- upgrade jsii to v0.7.12 (#1328) (62b7941)
- aws-cdk: fix YAML line wrapping issue (#1334) (48b9bdd), closes #1309
- aws-codecommit: make the onCommit CloudWatch Event respect creating the branch as well. (#1320) (cb1aed9)
- aws-ecr: add the
addToPipeline
method to IRepository. (#1329) (c4a9b74) - aws-ecs: fix healthCheckGracePeriodSeconds (#1266) (3a89e21), closes #1265
- aws-ecs: set permissions for 'awslogs' log driver (#1291) (f5bc59b), closes #1279
- aws-lambda: code.asset now supports jar files, fixes #1294 (#1330) (3076070)
- aws-logs: set default log retention of LogGroup to 731 instead of 730 (#1344) (71dc09f), closes #1343
Features
- aws-cdk: directory assets follow symlinks (#1318) (2dfd593), closes #731
- aws-s3: orphan buckets by default (#1273) (2eb47ad), closes #1269
- core: include jsii runtime version in analytics (#1288) (f06de18), closes awslabs/jsii#325 #1258 awslabs/cdk-ops#127
- core: only include cdk libs in version reporting (#1290) (6184423), closes awslabs/cdk-ops#172
- docs: add design process description & basic style guide (#1229) (5ffa7e2), closes awslabs/cdk-ops#177
- toolkit: include toolkit version in AWS::CDK::Metadata (#1287) (5004f50), closes #1286
BREAKING CHANGES
- assert: the behavior change of
haveResource
can cause tests to
fail. If allowing extension of the expected values is the intended behavior, you can
switch to thehaveResourceLike
matcher instead, which exposes the previous
behavior.
v0.19.0
Bug Fixes
- aws-cdk: add '-h' flag to bring up help (#1274) (47dafb0), closes #1259
- aws-cloudfront: Allow to disable IPv6 on cloudfront distribution (#1244) (10b7092), closes #1243
- aws-cloudtrail: correct S3 bucket policy and dependency chain (#1268) (0de2da8), closes #1172
- aws-ec2: fix code generation of IcmpPing (#1235) (6a13a18), closes #1231
- cdk: don't use instanceof in App (#1249) (a45c3bd), closes #1245
- cdk init: rename 'dotnet' to 'csharp' (#1210) (da6a799), closes #1123
- cdk init: update 'app' init template (#1209) (0287109), closes #1124 #1128 #1214
Features
- aws-codebuild: allow using docker image assets as build images (#1233) (72413c1), closes #1232 #1219
- aws-codebuild: rename the Project methods for adding Actions to CodePipeline. (#1254) (825e448), closes #1211
- aws-ecr: add an ECR Repository source CodePipeline Action. (#1255) (01cc8a2)
- app-delivery: IAM policy for deploy stack (#1165) (edc9a21), closes #1165 #1151
- Update to CloudFormation spec v2.16.0 (#1280) (9df5c54)
BREAKING CHANGES
- aws-codebuild:
ecr.RepositoryRef
has been replaced byecr.IRepository
, which
means thatRepositoryRef.import
is nowRepository.import
. Futhermore, the CDK
Toolkit must also be upgraded since the docker asset protocol was modified.
IRepository.grantUseImage
was renamed toIRepository.grantPull
. - aws-codebuild:
addBuildToPipeline
was renamed toaddToPipeline
andaddTestToPipeline
was renamed toaddPipelineToTest
in order to align
with naming conventions. CloudFormationCapabilities.IAM
renamed to
CloudFormation.AnonymousIAM
andPipelineCloudFormationDeployActionProps.capabilities?: CloudFormationCapabilities[]
has been changed to
PipelineCloudFormationDeployActionProps.capabilities?: CloudFormationCapabilities
no longer an array.
PipelineCloudFormationDeployActionProps.fullPermissions?:
has been
renamed toPipelineCloudFormationDeployActionProps.adminPermissions:
and is required instead of optional.
v0.18.1
v0.18.0
Bug Fixes
- aws-cdk: make bootstrapping not require --app (#1191) (c7b1004), closes #1188
- aws-ecs: don't emit DesiredCount in daemon mode (#1199) (7908de4), closes #1197
- aws-elasticloadbalancingv2: 'targetType' on groups (#1174) (b4293f2)
- aws-elasticloadbalancingv2: fix rule dependency (#1170) (aeb0f4f), closes #1160
- deps: upgrade jsii to 0.7.11 (#1202) (f3a5f12)
- docs: fix "getting started" documentation (#1045) (29b611f)
- toolkit: typo in
cdk bootstrap
output (#1176) (b83fe85)
Features
- aws-autoscaling: add instance AutoScaling (#1134) (d397dd7), closes #1042 #1113
- aws-codebuild: add support for additional sources and artifact in Projects. (#1110) (d911b08)
- aws-ec2: add VPC context provider (#1168) (e8380fa), closes #1095
- aws-ecs: expose service and target group on the LoadBalancedFargateService (#1175) (e799699)
- aws-ecs: instance autoscaling and drain hook (#1192) (811462e), closes #1162
- aws-ecs: Support HTTPS in load balanced Fargate service (#1115) (76a5cc7)
- aws-ecs: TLS support for Fargate service applet (#1184) (18166ce)
- update to CloudFormation spec v2.13.0 (#1203) (c531c84)
- aws-elasticloadbalancingv2: add metrics (#1173) (68d481d), closes #853
- docs: getting started instructions for csharp (#1185) (2915ac1), closes #696
- toolkit: add 'cdk context' command (#1169) (2db536e), closes #311
- toolkit: by default hide AWS::CDK::Metadata from "cdk diff" (#1186) (ef0017a), closes #465
- toolkit: improve diff user interface (#1187) (9c3c5c7), closes #1121 #1120
- aws-codepipeline: switch to webhooks instead of polling by default for the GitHub (#1074)
BREAKING CHANGES
- aws-codebuild: this changes the way CodeBuild Sources are constructed (we moved away from multiple parameters in the constructor, in favor of the more idiomatic property interface).
- aws-elasticloadbalancingv2:
targetGroup.listenerDependency()
has been renamed totargetGroup.loadBalancerDependency()
.
v0.17.0
Bug Fixes
- aws-ecs: remove DockerHub constructor class (#1153) (ed14638)
- aws-ec2: add dependency on gateway attachment for public routes (#1142) (15b255c), closes #1140
- s3-deployment: bundle modules correctly (#1154) (0cb1adf)
Features
- aws-codedeploy: add an
addToPipeline
method to Deployment Group. (#1166) (bdbeb7c) - aws-codepipeline, aws-cloudformation: support cross-region CloudFormation pipeline action (#1152) (8e701ad)
- toolkit: print available templates when --language is omitted (#1159) (5726c45)
BREAKING CHANGES
- aws-ec2: Method signature of
VpcPublicSubnet.addDefaultIGWRouteEntry changed in order to add a
dependency on gateway attachment completing before creating the public
route to the gateway. Instead of passing a gateway ID string, pass in a
cloudformation.InternetGatewayResource object and a
cloudformation.VPCGatewayAttachmentResource object. - If you were using
DockerHub.image()
to reference docker hub images,
useContainerImage.fromDockerHub()
instead.
v0.16.0
Bug Fixes
- aws-elasticloadbalancingv2: listener dependency (#1146) (e9d3d93), closes #1139
- aws-elasticloadbalancingv2: unhealthy threshold (#1145) (a70a50d)
Features
- aws-codedeploy: CodeDeploy Pipeline Action using the L2 DeploymentGroup Construct. (#1085) (ce999b6)
- aws-route53: route53 Alias record support (#1131) (72f0124)
- cdk: allow Tokens to be encoded as lists (#1144) (cd7947c), closes #744
BREAKING CHANGES
- aws-codedeploy: this changes the API of the CodeDeploy Pipeline Action
to take the DeploymentGroup AWS Construct as an argument instead of the names
of the Application and Deployment Group.
v0.15.2
v0.15.1
v0.15.0
Bug Fixes
- aws-autoscaling: allow minSize to be set to 0 (#1015) (67f7fa1)
- aws-codebuild: correctly pass the timeout property to CFN when creating a Project. (#1071) (b1322bb)
- aws-codebuild: correctly set S3 path when using it as artifact. (#1072) (f32cba9)
- aws-kms: add output value when exporting an encryption key (#1036) (cb490be)
- Switch from
js-yaml
toyaml
(#1092) (0b132b5)
Features
- don't upload the same asset multiple times (#1011) (35937b6), closes #989
- app-delivery: CI/CD for CDK Stacks (#1022) (f2fe4e9)
- add a new construct library for ECS (#1058) (ae03ddb)
- applets: integrate into toolkit (#1039) (fdabe95), closes #849 #342 #291
- aws-codecommit: use CloudWatch Events instead of polling by default in the CodePipeline Action. (#1026) (d09d30c)
- aws-dynamodb: allow specifying partition/sort keys in props (#1054) (ec87331), closes #1051
- aws-ec2: AmazonLinuxImage supports AL2 (#1081) (97b57a5), closes #1062
- aws-lambda: high level API for event sources (#1063) (1be3442)
- aws-sqs: improvements to IAM grants API (#1052) (6f2475e)
- codepipeline/cfn: Use fewer statements for pipeline permissions (#1009) (8f4c2ab)
- pkglint: Make sure .snk files are ignored (#1049) (53c8d76), closes #643
- toolkit: deployment ui improvements (#1067) (c832eaf)
- Update to CloudFormation resource specification v2.11.0
BREAKING CHANGES
- The ec2.Connections object has been changed to be able to manage multiple
security groups. The relevant property has been changed fromsecurityGroup
tosecurityGroups
(an array of security group objects). - aws-codecommit: this modifies the default behavior of the CodeCommit
Action. It also changes the internal API contract between the
aws-codepipeline-api module and the CodePipeline Actions in the service
packages. - applets: The applet schema has changed to allow Multiple applets can be
define in one file by structuring the files like this: - applets: The applet schema has changed to allow definition of multiple
applets in the same file.
The schema now looks like this:
applets:
MyApplet:
type: ./my-applet-file
properties:
property1: value
...
By starting an applet specifier with npm://, applet modules can directly be
referenced in NPM. You can include a version specifier (@1.2.3) to reference
specific versions.
- aws-sqs:
queue.grantReceiveMessages
has been removed. It is unlikely
that this would be sufficient to interact with a queue. Alternatively you can
usequeue.grantConsumeMessages
orqueue.grant('sqs:ReceiveMessage')
if
there's a need to only grant this action.