-
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
aws-ec2: Instance.applyCloudFormationInit is private #30863
Comments
Hi @Irame , thanks for reaching out. AFAIK, the
Making it public might not be desirable PR(014c13a#diff-53d5a35c408bb5bcd8c3b8e135dbd00660447763e9003af414536ab603d4a25d). Leaving it upto the core team for decision making. |
Hi, thank you for the prompt response. |
Hi @Irame , I checked with my team regarding this method. Seems like the change was done quite a long time ago. I also saw that this method is public with
It would make no harm if we make the mentioned method public for EC2 as well. Please feel free to submit a PR if you would like. Thanks! |
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
### Issue # (if applicable) Closes aws#30863. ### Reason for this change The issue is asking to make the function `applyCloudFormationInit()` public from private. Also we have this function being public in https://github.com/aws/aws-cdk/blob/ffd9d9ce510a4c820b1437cce93c4772cd7c14c0/packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts#L1650 ### Description of changes Make the function public ### Description of how you validated changes build passed ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Describe the bug
Expected Behavior
I expected to be able to call applyCloudFormationInit to attach my CloudFormationInit to a EC2 Instance, because the documentation said it would be possible.
Current Behavior
I can not call Instance.applyCloudFormationInit beacuse it it private.
Reproduction Steps
Create a ec2.Instance and try to call applyCloudFormationInit on it.
Possible Solution
Make ec2.Instance.applyCloudFormationInit public.
Additional Information/Context
Code location:
aws-cdk/packages/aws-cdk-lib/aws-ec2/lib/instance.ts
Line 633 in ce7a8d5
Documentation: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CloudFormationInit.html#:~:text=As%20an%20app%20builder%2C%20use%20instance.applyCloudFormationInit()
CDK CLI Version
2.149.0
Framework Version
No response
Node.js Version
v20.11.0
OS
Windows
Language
TypeScript
Language Version
5.5.2
Other information
No response
The text was updated successfully, but these errors were encountered: