Generated PolicyDocument doesn't include Version.
#3269
Replies: 3 comments
-
|
Note that I haven't actually verified the uploaded template—rather I was looking at the CloudFormation stack in the console with "View processed template" enabled, which I believe should be equivalent. I see that the |
Beta Was this translation helpful? Give feedback.
-
|
Moving to aws/serverless-application-model as this is related to the transform. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the submitting this issue! You're right in that our policy documents don't include the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I indicate a policy for my
AWS::Serverless::Functionlike this:SAM will generate a policy that looks like this:
Note that no
Versionis specified in thePolicyDocument. According to theVersiondocumentation for IAM JSON policy elements:Thus the generated policy isn't following AWS' own recommendations.
Beta Was this translation helpful? Give feedback.
All reactions