Skip to content

v0.7.4-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@eladb eladb released this 26 Jul 11:38
f20b380

Refer to the README for this release for detailed instructions.

S3 Location:

aws s3 cp s3://aws-cdk-beta/aws-cdk-0.7.4-beta+f20b380.zip ~/Downloads
aws s3 cp s3://aws-cdk-beta/aws-cdk-0.7.4-beta+f20b380.zip.sig ~/Downloads

Highlights

  • A huge shout-out to our first external contributor, @moofish32, for many
    valuable improvements to the EC2 VPC construct (@moofish32 in #250).
  • The AWS::CDK::Metadata resource is injected to templates to analyze usage
    and notify about deprecated modules to improve security. To opt-out, use the
    switch --no-version-reporting or set version-reporting to false in your
    cdk.json (@RomainMuller in #221).
  • Added capability for bundling local assets (files/directories) and referencing
    them in CDK constructs. This allows, for example, to define Lambda functions
    with runtime code in the same project and deploy them using the toolkit
    (@eladb in #371).
  • Reorganization of CodePipeline actions into separate libraries (@skinny85 in #401 and #402).
  • A new library for CloudWatch Logs (@rix0rrr in #307).

AWS Construct Library

  • BREAKING: All AWS libraries renamed from @aws-cdk/xxx to
    @aws-cdk/aws-xxx in order to avoid conflicts with framework modules
    (@RomainMuller in #384).
  • BREAKING: The @aws-cdk/resources module has been removed.
    Low-level CloudFormation resources (e.g. BucketResource) are now integrated
    into their respective library under the cloudformation namespace to improves
    discoverability and organization of the layers (@RomainMuller in #264).

Framework

  • Introducing CDK Assets which are local files or directories that can be
    "bundled" into CDK constructs and apps. During deployment assets are packaged
    (i.e. zipped), uploaded to S3 and their deployed location can be referenced in
    CDK apps via the s3BucketName and s3ObjectKey and s3Url and read
    permissions can be granted via asset.grantRead(principal) (@eladb in
    #371)
  • Return dummy values instead of fail synthesis if environmental context (AZs,
    SSM parameters) doesn't exist in order to support unit tests. When
    synthesizing through the toolkit, an error will be displayed if the context
    cannot be found (@eladb in #227)
  • Added construct.addError(msg), addWarning(msg) and addInfo(msg) which
    will emit messages during synthesis via the toolkit. Errors will fail
    synthesis (unless --ignore-errors is used), warnings will be displayed and
    will fail synthesis if --strict is used (@eladb in #227)

Command Line Toolkit

  • The toolkit now injects a special CloudFormation resource AWS::CDK::Metadata
    to all synthesized templates which includes library versions used in the app.
    This allows the CDK team to analyze usage and notify users if they use
    deprecated versions (@RomainMuller in #221).
  • Bug fix: Fixed "unknown command: docs" (@RomainMuller in #256)
  • Changed output of cdk list to just print stack names (scripting-compatible).
    Use cdk ls -l to print full info (@eladb in #380)

AWS EC2

  • BREAKING: Add the ability customize subnet configurations.
    Subnet allocation was changed to improve IP space efficiency. VpcNetwork
    instances will need to be replaced (@moofish32 in #250)
  • BREAKING: Renamed Fleet to AutoScalingGroup to align with service
    terminology (@RomainMuller in #318)

AWS Lambda

  • Supports runtime code via local files or directories through assets (@eladb
    in #405)
  • Support custom execution role in props (@rix0rrr in #205)
  • Add static metricAllConcurrentExecutions and
    metricAllUnreservedConcurrentExecutions which returns account/region-level
    metrics for all functions (@rix0rrr in #379)

AWS CloudWatch

  • Added Metric.grantMetricPutData which grants cloudwatch:PutData
    to IAM principals (@rix0rrr in #214)
  • Bug fix: Allow text included in dashboard widgets to include characters
    that require JSON-escaping (@eladb in #406).

AWS CloudWatch Logs (new)

  • A new construct library for AWS CloudWatch Logs with support for log groups,
    metric filters, and subscription filters (@rix0rrr in #307).

AWS S3

  • Added bucketUrl and urlForObject(key) to BucketRef (@eladb in #370)

AWS CodeBuild

  • Add CloudWatch metrics to BuildProject (@eladb in [#407])

AWS CodePipeline

  • BREAKING: Moved CodeCommit and CodeBuild and LambdaInvoke actions from
    the CodePipeline library to @aws-cdk/aws-xxx-codepipline modules
    (@skinny85 in #401 and #402).
  • Added attributes pipelineName and pipelineVersion (@eladb in #408)

Docs

  • fix: add instructions and fix Windows setup (@mpiroc in #320)
  • fix: show emphasis of modified code in code snippets (@eladb in #396)