Skip to content

Commit

Permalink
[config] Update iam permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed May 2, 2022
1 parent c98f835 commit b2a0408
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion serverless.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ provider:
region: ${opt:region, 'us-west-2'}
environment:
REGION: ${self:provider.region}
DYNAMODB_TABLE: "mailbox-${self:provider.stage}"
DYNAMODB_TABLE: mailbox-${self:provider.stage}
DYNAMODB_TIME_INDEX: TimeIndex
S3_BUCKET: example-mailbox # set this to your S3 bucket name
SQS_QUEUE: example-mailbox # set this to your SQS queue name
Expand All @@ -23,6 +23,7 @@ provider:
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
- dynamodb:BatchWriteItem
Resource: "arn:aws:dynamodb:${self:provider.region}:*:table/${self:provider.environment.DYNAMODB_TABLE}"
- Effect: Allow
Action:
Expand All @@ -39,6 +40,10 @@ provider:
- sqs:GetQueueUrl
- sqs:SendMessage
Resource: "arn:aws:sqs:${self:provider.region}:*:${self:provider.environment.SQS_QUEUE}"
- Effect: Allow
Action:
- ses:SendEmail
Resource: "arn:aws:ses:${self:provider.region}:*:identity/*"
apiGateway:
shouldStartNameWithService: true

Expand Down

0 comments on commit b2a0408

Please sign in to comment.