Skip to content

Commit

Permalink
chore(ec2): make applyCloudFormationInit() function public (#30907)
Browse files Browse the repository at this point in the history
### 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*
  • Loading branch information
xazhao committed Jul 19, 2024
1 parent b4377a5 commit 7621439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-ec2/lib/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ export class Instance extends Resource implements IInstance {
* - Add commands to the instance UserData to run `cfn-init` and `cfn-signal`.
* - Update the instance's CreationPolicy to wait for the `cfn-signal` commands.
*/
private applyCloudFormationInit(init: CloudFormationInit, options: ApplyCloudFormationInitOptions = {}) {
public applyCloudFormationInit(init: CloudFormationInit, options: ApplyCloudFormationInitOptions = {}) {
init.attach(this.instance, {
platform: this.osType,
instanceRole: this.role,
Expand Down

0 comments on commit 7621439

Please sign in to comment.