Full stack serverless template

This commit is contained in:
2021-09-22 09:23:42 -05:00
parent 3a410213b9
commit ae37645212
45 changed files with 2373 additions and 16 deletions

View File

@@ -0,0 +1,28 @@
component: aws-iam-role
name: permissions
inputs:
name: ${name}-${stage}
region: us-east-1
service: lambda.amazonaws.com
policy:
# AWS Lambda function containing Express Logs and Assume Role access
- Effect: Allow
Action:
- sts:AssumeRole
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: "*"
# AWS DynamoDB Table access
- Effect: Allow
Action:
- dynamodb:DescribeTable
- dynamodb:Query
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource:
- ${output:database.arn}
- ${output:database.arn}/index/*