Skip to content

v0.7.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@eladb eladb released this 13 Jun 12:59
5a0418a

Optionally, you may also obtain this release from S3:

aws s3 cp s3://aws-cdk-beta/aws-cdk-0.7.0-beta+5a0418a.zip /tmp/aws-cdk.zip

See README for setup/update instructions.

Framework

  • BREAKING: All CDK packages are now under the scope @aws-cdk (e.g.
    @aws-cdk/s3).
  • BREAKING: The jsii compiler now configures tsconfig.json to produce definition
    files (files with a .d.ts extension). This requires updating your existing
    package.json files types key to replace the .ts extension with a .d.ts
    extension.
  • Java bindings now include static methods and constants.
  • SecretParameter can be used to load values from the SSM parameter store
    during deployment and use them as Secrets.
  • Stack is locked for mutations during synthesis to protect against
    accidental changes in lazy values.
  • An overhaul of documentation updates, edits and improvements.

ACM

  • Fix: cloudFrontDefaultCertificate is mutually exclusive with acmCertificateArn.

CloudFront (new)

  • Added a new construct library for AWS CloudFront.

CodeBuild

  • Added support for specifying environment variables at the container and
    project levels.

CodePipeline

  • Fix: GitHub action "owner" changed to ThirdParty.
  • Removed all fluent APIs
  • Use "master" as the default branch for Source actions
  • BREAKING: AmazonS3SourceProps - renamed key to bucketKey

Custom Resources

  • BREAKING: Require that Lambda is referenced explicitly when defining a custom resource.
    SingletonLambda can be used to encapsulate the custom resource's lambda
    function but only have a single instance of it in the stack.

Events (new)

A new cross-stack programming model is introduced to support CloudWatch Events.
Event sources implement onXxx methods for various events that can emitted by
that source and event targets implement IEventRuleTarget, so they can be
polymorphically added to rules.

const repo = new Repository(stack, 'MyRepo', { repositoryName: 'my-repo' });
const project = new BuildProject(stack, 'MyProject', { source: new CodeCommitSource(repo) });

const topic = new Topic(stack, 'MyTopic');
topic.subscribeEmail('Personal', '[email protected]');

project.onStateChange(topic);

Coverage to all event sources and target will be added in subsequent releases.

Supported targets:

  • codebuild.BuildProject
  • codepipline.Pipeline
  • sns.Topic

Supported sources:

  • CodeBuild: onStateChange, onPhaseChange, onBuildStarted, onBuildFailed, onBuildSucceeded.
  • CodeCommit: onEvent, onStateChange, onReferenceCreated, onReferenceUpdated, onReferenceDeleted, onPullRequestStateChange, onCommentOnPullRequest, onCommentOnCommit, onCommit.
  • CodePipeline: pipeline.onStateChange, stage.onStateChange, action.onStateChange.

IAM

  • Add CanonicalUserPrincipal
  • Add statementCount to PolicyDocumennt.
  • Extended support for FederatedPrincipal.

Lambda

  • Add initialPolicy prop which allows specifying a set of PolicyStatements
    upon definition.

S3

  • Added support for lifecycle rules
  • Add domainName and dualstackDomainName attributes

Serverless

  • version field of FunctionResource is now optional.

SNS

  • BREAKING: subscribeXxx APIs now do not require a name when possible
    (for queue, Lambda).
  • Unique SID assigned to resource policy statements.

Toolkit

  • cdk docs opens your browser with the bundled documentation content.
  • cdk init interface changed to specify --lang and --type separately.
  • Plug-in architecture improved.