Skip to content
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

fix(asg/ec2): fix value of defaultChild #3572

Merged
merged 3 commits into from
Aug 8, 2019
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Aug 7, 2019

AutoScalingGroup and Subnet had default children with incorrect
names, so that defaultChild would not pick them up. Add and use an
override mechanism so that people can use the escape hatch more
conveniently with those constructs.

Fixes #3478.


Please read the contribution guidelines and follow the pull-request checklist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

`AutoScalingGroup` and `Subnet` had default children with incorrect
names, so that `defaultChild` would not pick them up. Add and use an
override mechanism so that people can use the escape hatch more
conveniently with those constructs.

Fixes #3478.
@rix0rrr rix0rrr self-assigned this Aug 7, 2019
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing unit tests for defaultChild=

packages/@aws-cdk/core/lib/construct.ts Show resolved Hide resolved
* This should only be used in the cases where the correct
* default child is not named 'Resource' or 'Default' as it
* should be.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document what happens when undefined is set

@rix0rrr rix0rrr added the effort/small Small work item – less than a day of effort label Aug 8, 2019
@mergify mergify bot merged commit c95eab6 into master Aug 8, 2019
@RomainMuller RomainMuller deleted the huijbers/default-children branch August 10, 2019 00:38
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoScalingGroup does not have default_child set
3 participants