Fix bugs from refactor!

This commit is contained in:
2020-11-11 20:58:18 -06:00
parent 7002e78aa0
commit 0193935d2d
11 changed files with 132 additions and 139 deletions

View File

@@ -2,27 +2,27 @@ 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/*
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/*