[ec2] init file for windows returns empty #10390
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
I stumbled on this piece of code in CDK:
aws-cdk/packages/@aws-cdk/aws-ec2/lib/cfn-init-elements.ts
Lines 487 to 504 in 491113d
Why is line 492 returning an empty object and not the file? Windows CloudFormation init can also have files. Am I missing something or is this a bug?
Reproduction Steps
Create a Windows ec2 with the init option set and use
ec2.InitFile.fromString
.What did you expect to happen?
I expected the CloudFormation init template to contain an entry with the file from the string I provided.
What actually happened?
The CloudFormation init template was empty for the files section:
files: {}
I'm missing the files 😢
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: