v0.7.4-beta
Pre-release
Pre-release
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 setversion-reporting
tofalse
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 thecloudformation
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 thes3BucketName
ands3ObjectKey
ands3Url
and read
permissions can be granted viaasset.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)
andaddInfo(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).
Usecdk 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
toAutoScalingGroup
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
AWS CodeBuild
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
andpipelineVersion
(@eladb in #408)