Skip to content

Commit 7621439

Browse files
authored
chore(ec2): make applyCloudFormationInit() function public (#30907)
### Issue # (if applicable) Closes #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*
1 parent b4377a5 commit 7621439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-ec2/lib/instance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export class Instance extends Resource implements IInstance {
630630
* - Add commands to the instance UserData to run `cfn-init` and `cfn-signal`.
631631
* - Update the instance's CreationPolicy to wait for the `cfn-signal` commands.
632632
*/
633-
private applyCloudFormationInit(init: CloudFormationInit, options: ApplyCloudFormationInitOptions = {}) {
633+
public applyCloudFormationInit(init: CloudFormationInit, options: ApplyCloudFormationInitOptions = {}) {
634634
init.attach(this.instance, {
635635
platform: this.osType,
636636
instanceRole: this.role,

0 commit comments

Comments
 (0)