-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
29 lines (25 loc) · 884 Bytes
/
Copy pathserverless.yml
File metadata and controls
29 lines (25 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
service: java-lambda-student-profile
provider:
name: aws
runtime: java8
profile: ${opt:profile, 'uvsy-sls-dev'}
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'sa-east-1'}
deploymentBucket: ${self:provider.stage}.${self:provider.region}.universy.serverless.deploys
deploymentPrefix: ${self:provider.region}
iamRoleStatements:
- Effect: "Allow"
Action:
- "cognito-idp:GetUser"
- "cognito-idp:UpdateUserAttributes"
Resource: "*"
environment:
STAGE: ${self:provider.stage}
CLIENT_ID: ${ssm:/${self:provider.stage}/cognito/clients/universy_mobile_client_id~true}
AWS_COGNITO_REGION: ${ssm:/${self:provider.stage}/cognito/region~true}
package:
artifact: build/distributions/${self:service}-1.0.zip
functions:
handler:
name: ${self:provider.stage}-${self:service}
handler: app.universy.student.profile.Handler