v26.0.0
26.0.0 (2021-09-15)
- feat!: Make instanceType a mandatory prop for EC2-based infrastructure (#790) (a01cd04), closes #790
BREAKING CHANGES
- The following constructs and patterns now require an instanceType prop:
- GuAutoScalingGroup
- GuEc2App
- GuPlayApp
- GuNodeApp
Previously these constructs and patterns would automatically create a CloudFormation parameter
for the instance type. This parameter has now been removed and instance type must be
provided via the constructor's props. For example:
new GuEc2App(stack, {
applicationPort: GuApplicationPorts.Node,
app: "test-gu-ec2-app",
access: { scope: AccessScope.PUBLIC },
instanceType: InstanceType.of(InstanceClass.T4G, InstanceSize.MEDIUM), //This is now required
monitoringConfiguration: { noMonitoring: true },
userData: "#!/bin/dev foobarbaz",
certificateProps: getCertificateProps(),
});