-
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): Cannot create to InitFiles with same target file name #25105
Comments
Thank you for your report. Can you share a little CDK sample that we can quickly reproduce and verify it in our account? |
Sure,
If I run
|
Thanks @bpauwels, I'm going to close this and reopen the original issue, as well as provide the context you've been able to provide to us 🙂 |
|
Describe the bug
Opening a new bug report for an already reported bug: #16891
Naming collision of InitFile constructs for multiple ec2 instances defined in the same stack definition when using the fromAsset or fromSource methods. Affected file: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-ec2/lib/cfn-init-elements.ts. Cause is most likely due to the underlying InitFile fromAsset and fromSource methods creating an s3 asset with interpolated id of ${targetFileName}Asset.
This bug just occurred to me again. I think it should not be closed until fixed.
Expected Behavior
One can create as many InitFiles as wanted with the same target file names
Current Behavior
You cannot create more than one InitFile with the same target file name
Reproduction Steps
Create more than one InitFile with the same target file name
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.67.0
Framework Version
No response
Node.js Version
16.19.1
OS
amazon linux 2
Language
Typescript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: