Describe the bug
- Can not attach CloudFormationInit to an Instance after I created it because Instance.applyCloudFormationInit is not public.
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:
|
private applyCloudFormationInit(init: CloudFormationInit, options: ApplyCloudFormationInitOptions = {}) { |
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
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