-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model Lambda's Alias.updatePolicy in our AWS::Lambda::Alias L1 #1177
Comments
Technically you should be able to use myResource.options.updatePolicy = {
autoScalingReplacingUpdate: {
willReplace: true
}
} Maybe we should convert this issue? And also add L2 support? |
Fair enough - I changed the title of the issue. L2 support is exactly why I'm opening this issue - because I want to add it :). |
This is where it's happening for ASGs: |
L1 creation/update policies are not generated but hand-written, so it should be easy enough to add the appropriate policies for Alias: |
@rix0rrr but how to change the type of the How to go about changing the type of |
You don't, but you can just make the one That is how CloudFormation "thinks" about it as well. They don't have an https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatepolicy.html |
Some CloudFormation resources (the example I know is AWS::Lambda::Alias with its UpdatePolicy) have attributes that are not listed under the
Properties
key in a template. These are currently not available in our L1s.They need to be added if we want to model these in the CDK.
The text was updated successfully, but these errors were encountered: