We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's a basic example of what I'd like to be able to do:
`service: my-service
provider: name: aws runtime: nodejs18.x
plugins:
serverless-iam-roles-per-function functions: myFunction: handler: handler.myFunction iamRoleStatements:
secondFunction: handler: handler.secondFunction iamRoleStatements:
anotherFunction: handler: handler.anotherFunction iamRoleStatements:
If this isn't supported currently by the package, what are my options?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here's a basic example of what I'd like to be able to do:
`service: my-service
provider:
name: aws
runtime: nodejs18.x
plugins:
serverless-iam-roles-per-function
functions:
myFunction:
handler: handler.myFunction
iamRoleStatements:
Action:
Resource: arn:aws:dynamodb:us-east-1:123456789012:table/my-table
Condition:
StringEquals:
"dynamodb:LeadingKeys": "userId"
secondFunction:
handler: handler.secondFunction
iamRoleStatements:
Action:
Resource: arn:aws:dynamodb:us-east-1:123456789012:table/my-table
Condition:
ForAllValues:StringNotLike:
"dynamodb:Attributes":[
"FreeGamesAvailable",
"BossLevelUnlocked"
]
anotherFunction:
handler: handler.anotherFunction
iamRoleStatements:
Action:
Resource: arn:aws:s3:::my-bucket/*
Condition:
IpAddress:
"aws:SourceIp": "203.0.113.0/24"
`
If this isn't supported currently by the package, what are my options?
The text was updated successfully, but these errors were encountered: