I'm using AWS CDK and am trying to enable the associatePublicIpAddress
property for an AutoScalingGroup
that's using a launch template.
I'm hitting this error (https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-autoscaling/lib/auto-scaling-group.ts#L1526-L1528)
if (props.associatePublicIpAddress) {
throw new Error('Setting \'associatePublicIpAddress\' must not be set when \'launchTemplate\' or \'mixedInstancesPolicy\' is set');
}
Is it possible to enable public ip addresses with launch templates? I don't see any workarounds documented in the codebase or in the cdk docs.