v35.0.0
35.0.0 (2022-02-17)
Bug Fixes
-
Only add to Mappings when strictly necessary (38f3f38)
-
Remove redundant
machineImage
prop from ASG (1c8ba00) -
Merge pull request #1092 from guardian/aa-rm-stage-awareness (2b6e10b), closes #1092
-
feat!: Remove stage awareness from
GuAlarm
(c5230e8) -
feat!: Remove stage awareness from
GuCertificate
andGuCname
constructs (3e7b72c) -
feat!: Remove stage awareness from
GuAutoScalingGroup
construct (e39555d)
BREAKING CHANGES
- Constructs are no longer stage aware.
Scaling props in GuAutoScalingGroup
are now of type number
and no longer need to be decorated with stage details. The caller can optionally provide a Mapping (via withStageDependentValue
) if necessary. GuCertificate
, GuCname
, and GuAlarm
see a similar change.
From:
new GuAutoScalingGroup(stack, "AutoscalingGroup", {
// other required props
stageDependentProps: {
[Stage.CODE]: { minimumInstances: 2 },
[Stage.PROD]: { minimumInstances: 5 },
},
});
To:
// Stage agnostic
new GuAutoScalingGroup(stack, "AutoscalingGroup", {
// other required props
minimumInstances: 2,
maximumInstances: 11,
});
// Stage aware
const app = "TestApp";
new GuAutoScalingGroup(stack, "AutoScalingGroup", {
// other required props
minimumInstances: stack.withStageDependentValue<number>({
app,
variableName: "minInstances",
stageValues: { [Stage.CODE]: 1, [Stage.PROD]: 3 },
}),
maximumInstances: stack.withStageDependentValue<number>({
app,
variableName: "maxInstances",
stageValues: { [Stage.CODE]: 2, [Stage.PROD]: 6 },
}),
});
- The props to
GuAlarm
has changed.
actionsEnabledInCode
has been removed and actions are enabled by default.
To make GuAlarm
stage aware, connfigure the actionsEnabled
prop with a Mapping (via withStageDependentValue
).
- The props to
GuCertificate
andGuCname
has changed.
GuCertificate
and GuCname
are no longer directly stage aware; the caller can optionally provide a Mapping (via withStageDependentValue
) if necessary.
- The props to
GuAutoScalingGroup
has changed.
GuAutoScalingGroup
is no longer directly stage aware; the caller can optionally provide a Mapping (via withStageDependentValue
) if necessary.