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.
-
Let's say I indicate a policy for my
AWS::Serverless::Function
like this:SAM will generate a policy that looks like this:
Note that no
Version
is specified in thePolicyDocument
. According to theVersion
documentation for IAM JSON policy elements:Thus the generated policy isn't following AWS' own recommendations.
Beta Was this translation helpful? Give feedback.
All reactions