Created
May 6, 2021 06:24
-
-
Save SamWSoftware/9fa03b12bdb226018125c4ec9762c4b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
functions: { | |
UserLogin: { | |
handler: `src/handler.main`, | |
environment: { | |
USERS_TABLE: { Ref: 'UsersTable' }, | |
}, | |
iamRoleStatements: [ | |
{ | |
Effect: 'Allow', | |
Action: 'dynamodb:GetItem', | |
Resource: { 'Fn::GetAtt': ['UsersTable', 'Arn'] }, | |
}, | |
{ | |
Effect: 'Allow', | |
Action: 'dynamodb:PutItem', | |
Resource: { 'Fn::GetAtt': ['CompaniesTable', 'Arn'] }, | |
}, | |
], | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment