Sunday, April 12, 2020

AWS IAM + Serverless Framework

The ABCs of IAM: Managing permissions with Serverless

Serverless Framework - AWS Lambda Guide - IAM

example serverless.yml
provider:
2  name: aws
3  runtime: nodejs6.10
4  iamRoleStatements:
5    - Effect: "Allow"
6      Action:
7       - dynamodb:Query
8       - dynamodb:Scan
9       - dynamodb:GetItem
10       - dynamodb:PutItem
11       - dynamodb:UpdateItem
12       - dynamodb:DeleteItem
13      Resource: "arn:aws:dynamodb:us-west-2:111110002222:table/my-new-table"

No comments: