You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was discovered in the process of migrating our codebase from CDKv1 to CDKv2. Along the way, this generated a cdk diff with many changes like the following:
However I'm not able to reproduce your findings. If I toggle between v1.140.0 and v1.141.0 I can see the expected difference in the Policy.
Our version tags also show the difference (v1.141.0,v1.140.0). I suspect you may have had some strange issues in your environment when migrating between different v1 versions which prevented you from seeing this change.
That's interesting, I'm still not able to reproduce this. Given this, and the fact that v1 is in maintenance mode, I'll be closing this issue out. Thanks again for reporting!
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
It appears that v1.141.0/v2.10.0 introduced the following change:
However, this does not seem to actually apply to any release in CDKv1.
Expected Behavior
cdk synth
to output enumerateds3:PutObject
actions. Expected output would would be something like thisCurrent Behavior
cdk synth
outputs globbeds3:PutObject*
actions:I tested this against v1.140, v1.141 and v1.173; all generated templates look the same as above.
Reproduction Steps
Execute
cdk synth | grep -A 10 '^[ ]\+FnServiceRoleDefaultPolicy'
with the followingapp.py
:This outputs the following globbed
s3:PutObject*
action instead of the various enumerateds3:PutObject
actions mentioned in #18494 :Possible Solution
No response
Additional Information/Context
This was discovered in the process of migrating our codebase from CDKv1 to CDKv2. Along the way, this generated a
cdk diff
with many changes like the following:CDK CLI Version
1.173.0
Framework Version
No response
Node.js Version
v14.17.6
OS
macOS Monterey 12.6
Language
Python
Language Version
Python 3.9.6
Other information
For completeness, I also tested this with v2.0.0, v2.9.0, and v2.10.0.
app.py
:v2.0.0 and v2.9.0 output the following:
v2.10.0 outputs the following:
The above is consistent with what I would expect from the changelog, so this appears to be CDKv1 issue.
The text was updated successfully, but these errors were encountered: