Releases: guardian/cdk
v59.0.0
Major Changes
-
e15d900: GuCDK EC2 patterns now require an explicit
UserData
orGuUserDataProps
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 astring
is passed to our patterns we have to wrap it in a specialCustomUserData
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 byforLinux
.
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 exampleaddS3DownloadCommand
the method helps you write commands to download from S3.
v58.2.0
v58.1.4
v58.1.3
v58.1.2
v58.1.1
v58.1.0
v58.0.0
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
orGuDynamoTable
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")
.