It should accept inline IAM policy maps as well. From the docs:
Policies accepts a single string or a list of strings, and can be the name of AWS managed policies or AWS SAM policy templates, or inline IAM policy documents formatted in YAML.
What is the motivation / use case for changing the behavior?
It's all squiggly :(
Please tell us about your environment:
Plugin version: 0.5.30
VSCode version: 1.53.2
Template type: CloudFormation with the AWS::Serverless-2016-10-31 transform
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
I'm using the "default" validation provider setting.
Note: what to raise a request for unknown/new or required field or resource, then raise a PR.
68 and #62
are good examples of updating a schema definition. It should not take longer that 15 minutes.
What to prioritizer bugfix or feature? Hit that ❤️support button on the top of the screen.
And don't forget to 🌟star the repo
I'm submitting a ...
Do you want to request a feature or report a bug?
Bug
For
AWS::Serverless::Function
resources,Policies
is expecting a string or list of strings.It should accept inline IAM policy maps as well. From the docs:
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html#sam-function-policies
It's all squiggly :(
Please tell us about your environment:
AWS::Serverless-2016-10-31
transformOther information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
I'm using the "
default
" validation provider setting.