I have one lambda function defined in my serverless.yml
file that looks like this:
my_function:
handler: handler.my_function
iamRoleStatements:
- Effect: "Allow"
Action:
- s3:GetObject
- s3:PutObject
Resource:
- "arn:aws:s3:::my-bucket/*"
events:
- http:
path: url-path
method: get
cors: true
I’m attempting to update this so that the function also gets invoked from a specific SNS topic. There is a promising snippet extension, but what I’m looking for is something that brings up IntelliSense right after typing the " - " inside iamRoleStatements -> Action
block. So that there is a list of all the different service types (like ec2, s3, sns, logs, etc.) Then typing ‘:’ after that service would bring up all the possible actions relevant to that service.
I’d be willing to build this sort of functionality into a new extension if anyone points me in the right direction. But I’m posting here first to make sure I don’t recreate the wheel if it already exists.
Typing ‘serverless’ into the Extensions search within VS Code only results in 2 as of now: