Releases: aws/aws-cdk
Releases · aws/aws-cdk
v1.16.1
v1.16.0
⚠ BREAKING CHANGES
- core: template file names in
cdk.out
for new projects created bycdk init
will usestack.artifactId
instead of the physical stack name to enable multiple stacks to use the same name. In most cases the artifact ID is the same as the stack name. To enable this fix for old projects, add the context key@aws-cdk/core:enableStackNameDuplicates: true
in yourcdk.json
file.
Features
- apigateway: publish api endpoint through an export name #3662 (#4849) (652a8f5)
- aws-ecr: add onImageScanCompleted() support (#4819) (5bdd9bb), closes #4818
- aws-eks: support aws/aws-node-termination-handler as the default spot draining handler (#4931) (f4a41d1)
- aws-events: Adds EventBus resources (#4609) (bbec8c5)
- cfnspec: update CloudFormation spec to 7.3.0 (#4838) (ed904cb)
- cli: add @types/node to typescript init templates (#4947) (efde8e9), closes #3839 #4462 #3840
- cli: cdk version command (#4720) (3459982)
- cli: docker image asset scanning by default (#4874) (87421c9)
- cli: dotnet init templates come with Roslyn Analyzers (#4765) (fbd007e)
- cloudwatch: allow overriding of metric graph rendering (#4571) (3643130)
- core: add resource type and properties for all CfnResource constructs to tree.json (#4894) (4037155), closes #4562
- core: cdk init --generate-only (#4826) (9cc1e52)
- custom-resources: allow specifying role for AwsCustomResource (#4909) (98fb888), closes #4906
- custom-resources: implement IGrantable for AwsCustomResource (#4790) (b840784), closes #4710
- ec2: allow using existing security groups with interface VPC endpoints (#4908) (bda28e8), closes #4589 #2699 #3446
- ec2: support NAT instances, AMI lookups (#4898) (dca9a24), closes #4876
- ecs: add cloudMapNamespace as a property of cloudMapOptions (#4890) (06caf4f)
- feature flags rfc (#4925) (db50ab0)
- custom-resources: provider framework (#4572) (f9eec04)
- ecs-patterns: add listener port as a property for network/application load balanced services (#4825) (20b8e5d), closes #4793
- elbv2: add redirect action of ALB's listener (#4606) (c770d3c), closes #4546
- events: support event bus for rule (#4839) (f5858ba)
- s3: onCloudTrailWriteObject matches all update events (#4723) (46d9885), closes #4634
- sns: support cross-region subscription on imported topics (#4917) (3dd194d), closes #3842
- stepfunctions: add
EvaluateExpression
task (#4602) (6dba637) - vpc: allow Vpc.fromLookup() to discover asymmetric subnets (#4544) (2ccb745), closes #3407
Bug Fixes
- apigateway: allow multiple api keys to the same usage plan (#4903) (142bd0e), closes #4860
- assets: support exceptions to exclude patterns (#4473) (b7b4336)
- cloudfront: aliasConfiguration fallback identifier conflict (#4760) (4d16f79)
- cloudfront: revert certificate region verification (#4734) (de0eb47)
- core: cannot use the same stack name for multiple stacks (under feature flag) (#4895) (658f100), closes #4412
- dockerfile: add yarn (#4844) (2f8d06a)
- dynamodb: Fix AutoScaling role ARN (#4854) (fc054e9)
- dynamodb-global: cannot deploy global tables due to unresolved resource dependencies (45f0e02), closes #4676
- ecs-patterns: handle desired task count being set to 0 (#4722) (c31ca27)
- eks: pass
--use-max-pods
to bootstrap options when false (#4753) (22fe0ce) - elbv2: update region/account map of elbv2 (#4738) (5d98e7f)
- init: 'cdk init' doesn't leave .d.ts files (#4841) (10b5b3c)
- init: remove automatic JSII Roslyn analyzer dependency (#4835) (5029f0e)
- init/csharp: correct cdk.json 'app' command (#4778) (d89504f)
- ssm: malformed ARNs for parameters with physical names that use path notation (#4842) (43f276a)
In addition to the above, several bugs in the Python, .NET ...
v1.15.0
⚠ BREAKING CHANGES
- rds:
securityGroup: ec2.ISecurityGroup
is nowsecurityGroups: ec2.ISecurityGroup[]
inDatabaseInstanceAttributes
- rds: removed
securityGroupId
fromIDatabaseInstance
Bug Fixes
- acm: update CertificateRequestorFunction runtime (#4612) (a711425), closes #4610
- assets: docker asset versions are pushed to separate repositories (#4537) (8484114), closes #4535
- aws-lambda: update deprecation warning for node.js 8.10 (#4624) (ace8041)
- cli: add Cloud Assembly backwards compat tests (#4625) (5d2e5e3), closes #4475 #4544
- cloudformation: cannot reference resource attributes with "." in nested stacks (#4684) (561bb73)
- codebuild: revert validation that only a project with source CODEPIPELINE can be added to a pipeline (#4689) (8e72720), closes #4646
- codepipeline: the CodeBuild action now works with imported projects (#4637) (6c4085e), closes #4613
- core: fix docs for CfnInclude (#4703) (ba38b76), closes #3424
- core: removalpolicy correct default (#4499) (09d89c3), closes #4416
- custom-resources: increase and expose timeout for AwsCustomResource (#4623) (f17f809), closes #3272
- eks: cannot update cluster configuration (#4696) (e17ba55), closes #4311 #4310
- elbv2: fix disabling proxy protocol v2 attribute for NetworkTargetGroup (#4596) (8b598c4), closes #4574
- iam: fix
managedPolicyName
, cross-account references (#4630) (9b7d2d0), closes #4581 #4567 - ssm: invalid parameter arn (#4685) (e26a36c), closes #4672
Features
- apigateway: add convenience url property at resource level (#4686) (012eeed)
- autoscaling: let AutoScalingGroup be IGrantable (#4654) (406dc8e)
- cloudfront: complete viewerCertificate support (#4579) (80b4ac9)
- codedeploy: Model ECS deployment resources and pipeline action (#4600) (ed639ca)
- codepipeline: add ability to override env variables in CodeBuild actions (#4502) (c0c0513), closes #4531
- ec2: Support explicit Subnet selection (#4622) (203a605)
- ecs: add support for start and stop timeout in ContainerDefinition (#4638) (b00c0af)
- ecs-patterns: add family name to load balanced service properties (#4688) (d7654e7)
- ecs-patterns: add service name to queue processing service properties (#4505) (3202720), closes #4504 #4504
- rds: allow using existing security groups for new instance (#4495) (ef1ce5e), closes #2949
- vpc: additional validation around Subnet Types (#4668) (9a96c37), closes #3704
v1.14.0
NOTICE: since Node.js 8.x is going out of maintenance early next year, starting in the next release, we will only test the AWS CDK against Node.js 10.x. If you are using an older version of Node.js, we recommend to upgrade.
Bug Fixes
- apigateway: deployment not invalidated when integration is changed (#4552) (eac7695), closes #4551 aws-samples/aws-cdk-intro-workshop#83
- cli: patch security vulnerability in https-proxy-agent (npm advisory 1184) (#4603) (ddb05f9)
- cli: upgrade proxy-agent to address security volnarability (#4618) (5a941a2)
- cloudfront: expose CfnDistribution as defaultChild (#4556) (8a79cad)
- codepipeline: work around CodeBuild's pipeline key bug (#4183) (b149b02), closes #4033
- core: child stack assembly metadata is duplidated on parent (#4540) (eeb5ae9), closes #2900
- eks: invalid arn when mapping users to rbac (#4549) (8f4a38d), closes #4545
- elbv2: correct wrong invalidation rules (#4583) (5f50e5f)
- region-info: add eu-west-1 to AWS_OLDER_REGIONS (#4584) (7055ee3)
- s3: access denied when adding an event notification to a s3 bucket (#4219) (6f22446), closes #3318
- s3: bucket notifications deleted during stack update (#4458) (f5daa6e), closes #1566
- ssm: allow specifying encryption key (#4511) (02a447f), closes #4498
- stepfunctions: map state validation fix (#4382) (bbe0380)
- stepfunctions-tasks: update resourceArn in service integrations (#4598) (b0f8a74), closes #4597
Features
v1.13.1
v1.13.0
Bug Fixes
- codepipeline: allow adding an S3 source action with the same bucket multiple times (#4481) (87458c1), closes #4237
- use fixed dependency versions between CDK packages (#4470) (1d1b8bc)
- cli: remove warning about assets not included in diff (#4454) (123c594), closes #395
- cli: Use RegionalDomainName attribute in output of Toolkit stack for GovCloud and CN compatibility (#4427) (adbc2e3), closes #1469
- codepipeline: do not retain the default bucket key and alias (#4400) (9740ed3), closes #4336
- elbv2: add new FS security policies (#4425) (a4e63bd)
- elbv2: validate healthcheck intervals (#4280) (3627e23), closes #4279
- s3-deployment: lambda "src" not included in published module (#4430) (d16080a), closes #4404
Features
- aws-s3-deployment: support specifying objects metadata (#4288) (63cb2da)
- cli: add tags to CDKToolkit stack through bootstrap cli command (#4320) (4284aa2), closes #4227 #4227 #4227 #4227 #4227 #4227 #4227
- cli: notify option in deploy command to specify SNS Notification ARNs (#4420) (7d6b474), closes #2528
- codepipeline: support cross-environment deployments for all actions (#4276) (1eebf92), closes #3389
- core: Add ability to set stack description (#4457) (#4477) (443394c)
- ecs: add automated spot instance draining support (#4360) (9c208d0)
- elbv2: support
UDP
andTCP_UDP
protocols (#4390) (1958f26) - s3-deployment: optional role override for bucket-deployment (#4284) (e1b48bc)
v1.12.0
Bug Fixes
- apigateway: defaultChild on RestApi returns the underlying L1 (#4318) (53db8bc), closes #3234
- cloudmap: fix CloudMap Service import, expose ECS CloudMap Service (#4313) (c968c96), closes #4286
- codebuild: validate if a CodePipeline action that is cross-account does not have outputs (#4171) (1744f8a), closes #4032
- custom-resources: support region for AwsCustomResource (#4298) (934d36f), closes #4292
- ecr-assets:
exclude
option (#4354) (f96b2fb), closes #4353 #4353 - ecs: nat network mode for windows tasks (#4317) (9ceb995), closes #4272
- lambda-event-sources: add missing export of streams.ts (#4362) (032b70c), closes #4352
Features
- cloudformation: nested stacks (#2821) (5225306), closes #239 #395 #3437 #1439 #3463
- ecs: add a new API for registering ECS targets (#4212) (de84c4a)
- ecs: add support for ProxyConfiguration in ECS TaskDefinition (#4007) (68e1e85)
- ecs: Add warning message when pulling ECR image (#4334) (bd36c6c)
- ecs-patterns: add CloudMapOptions to load balanced services (#4369) (de0a028)
- rds: add support for monitoring to database cluster (#2828) (910c8bf), closes #2826
- stepfunctions: add support for Map state (#4145) (c8f0bcf)
BREAKING CHANGES
- cloudmap:
cloudmap.Service.fromServiceAttributes
takes a newly
required argumentnamespace
.
v1.11.0
Bug Fixes
- cli: make new CLI work with old assembly versions (#4307) (2f979b7), closes #4294
- iam: validate actions (#4278) (3917c4b)
- stepfunctions: allow condition on array (#4340) (47203f4)
Features
- codepipeline: validate that source actions are in the same region as the pipeline (#4303) (c35091f)
- update CloudFormation resource specification to v6.2.0 (#4309) (92b05a6)
- cli: Add Jest tests to JavaScript init templates (#4282) (22a5ada), closes #4027
- ecs-patterns: Allow overriding
loadBalancer
andtaskDefinition
(#4213) (f2a6d46) - lambda: event-source maxBatchingWindow property (#4260) (4040032)
v1.10.1
v1.10.0
Bug Fixes
- acm: on delete, wait for certificate to become unused (#4191) (db77bfe), closes #4179
- acm: support Tokens for domainName in Certificate (#4251) (ee1283d), closes #4232
- apigateway: honour requestParameters passed via defaultMethodOptions (#4249) (b347c35)
- apigateway: proxy method options are not duplicated to root (#4192) (0d235fe)
- appmesh: actually set listener healthCheck.path (#4218) (602bac2)
- cloudtrail: fix use of imported bucket with CloudTrail (#4270) (7adb5ea), closes #4256
- cloudwatch: can use percentile override in
Alarm
(#4253) (859e4d1), closes #3845 - ecr-assets: docker build targets (#4185) (91cda9d), closes #4184
- ecr-assets: give accurate error when Tokens are being used (#4255) (1381b2d), closes #3795
- ecs: FargateTaskDefinition supports Tokens for
cpu
andmemory
(#4224) (c9529f9) - glue: expose CfnTable as defaultChild (#4197) (467d855)
- lambda: asset metadata invalid for layers (#4205) (d998e46), closes #4076 awslabs/aws-sam-cli#1411
- route53: use static s3 website endpoint (#4250) (3c252c4)
- rule: make
ruleName
accessible onRule
object (#4252) (be06fd5), closes #3809 - s3: missing http on website url (#4189) (960d71f)
- ssm: AWS::EC2::Image::Id parameter type (#4161) (48c26c2)
Features
- appmesh: eagerly validate
healthCheck
settings (#4221) (84a1b45) - core: context lookup errors are reported to CX app (#3772) (b0267e4), closes #3654
- ec2: add custom userdata factory (#4193) (3a9f4c8)
- ec2: add sourceDestCheck to instance (#4186) (6e75168)
- ec2: let Instance be IGrantable (#4190) (87f096e)
- ecr-assets: Support .dockerignore (faster Docker builds) (#4104) (8389eeb)
- ecs: add protocol option and default certificate for HTTPS services (#4120) (e02c6cc)
- ecs: add URL output for LB services (#4238) (38d78ed)
- ecs-patterns: support
propagateTags
andecsManagedTags
(#4100) (caa0077), closes #3979 - eks: retrieve ami with ssm (#4156) (622a4e1)
- eks: upgrade latest kubertenes version to 1.14 (#4157) (c7def91)
- elasticloadbalancingv2: add Instance target (#4187) (f11bece)
- s3-deployment: allow specifying memory limit (#4204) (84e1d4b), closes #4058
- ses-actions: move SES rule actions to separate package (#4163) (a9fef66), closes #3726
- publish construct tree into the cloud assembly (#4194) (3cca03d)
BREAKING CHANGES
- ses-actions: adding an action to a receipt rule now requires an integration
object from the@aws-cdk/aws-ses-actions
package.