Skip to content

Releases: guardian/cdk

v59.0.0

22 Jul 14:29
3ec1c6e
Compare
Choose a tag to compare

Major Changes

  • e15d900: GuCDK EC2 patterns now require an explicit UserData or GuUserDataProps input, instead of a string.

    The UserData class comes with helpers that allow us to mutate the user data in our patterns which will be helpful with some of our upcoming work.
    Unfortunately whenever a string is passed to our patterns we have to wrap it in a special CustomUserData class which disables most of these helpers.

    For applications that were already using GuUserDataProps no change is required, however applications that used strings will have to make a small change.

    new GuEc2App({
      userData: `#!/usr/bin/bash echo "hello world"`,
      ...
    })

    becomes

    const userData = UserData.forLinux();
    userData.addCommands(`echo "hello world"`);
    
    new GuEc2App({
      userData,
      ...
    })

    Note that you no longer need to specify a shebang, by default UserData adds one for you. If you need to customize this behaviour you can look at the props accepted by forLinux.
    You may also want to look at some of the other methods that UserData has to understand if it may be able to help you in other ways, for example addS3DownloadCommand the method helps you write commands to download from S3.

v58.2.0

15 Jul 13:38
d424632
Compare
Choose a tag to compare

Minor Changes

  • 59ffa9d: feat(asg): Allow setting the UpdatePolicy on ASGs provisioned by our EC2 patterns
  • 689b59a: Bump @guardian/tsconfig to 1.0.0 and specifically set moduleResolution to "node"

v58.1.4

11 Jul 07:33
3f28b71
Compare
Choose a tag to compare

Patch Changes

  • c015419: Update aws-cdk to 2.148.0, aws-cdk-lib to 2.148.0, constructs to 10.3.0
  • 7051a7c: fix(ec2-app): Use clientSecretValue prop over deprecated clientSecret
  • 9cfabc6: fix(lambda): Use loggingFormat prop over deprecated logFormat

v58.1.3

04 Jul 07:18
2220425
Compare
Choose a tag to compare

Patch Changes

  • 16c7086: Limit the length of the cognito user pool domainPrefix generated by the Ec2App googleAuth functionality to 63 characters
  • 816f3a2: bump codemaker from 1.100.0 to 1.101.0
  • 94640e9: bump typedoc from 0.26.2 to 0.26.3
  • 4eee825: bump @changesets/cli from 2.27.5 to 2.27.7

v58.1.2

13 Jun 19:56
9f6922b
Compare
Choose a tag to compare

Patch Changes

  • 87242ca: Update aws-cdk to 2.145.0, aws-cdk-lib to 2.145.0, constructs to 10.3.0

v58.1.1

23 May 17:15
c5aff8f
Compare
Choose a tag to compare

Patch Changes

  • 1da0da9: Update aws-cdk to 2.141.0, aws-cdk-lib to 2.141.0, constructs to 10.3.0
  • c8400c9: Add useful ASG group metrics (TOTAL_INSTANCES, etc) by default

v58.1.0

10 May 10:53
481a99d
Compare
Choose a tag to compare

Minor Changes

  • 96cb7dc: Use the recommended ELB security policy ELBSecurityPolicy-TLS13-1-2-2021-06 which includes TLS 1.3, and is backwards compatible with TLS 1.2.

v58.0.0

01 May 13:24
a322c74
Compare
Choose a tag to compare

Major Changes

  • fa0719b: BREAKING CHANGE: DevX Backups can no longer be enabled via the withBackup prop, which has been removed.

    Users should now opt-in/out of DevX Backups at the construct level (i.e. when defining an RDS instance, cluster or
    DynamoDB table).

    We recommend using the GuDatabaseInstance or GuDynamoTable to help with this. If these constructs cannot be used,
    resources can also be tagged like this: Tags.of(myDatabase).add("devx-backup-enabled", "true").

v57.1.0

01 May 10:52
d3f97df
Compare
Choose a tag to compare

Minor Changes

  • 8bde0ca: Add Dynamodb construct with default deletion protection and mandatory opt-in/opt-out setting for DevX-backup.

v57.0.0

17 Apr 16:39
02695ec
Compare
Choose a tag to compare

Major Changes

  • 7cc8591: BREAKING CHANGE:

    Users of the GuDatabaseInstance class now need to explicitly opt-in/out of
    DevX Backups via the devXBackups prop.

Minor Changes

  • 197228b: GuLambdaFunction uses JSON logging by default, for compatibility with ApplicationLogLevel