Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (46 sloc) 1.36 KB
service: microservice-starter
provider:
name: aws
runtime: java8
timeout: 300
memorySize: 1536
environment: ${file(serverless.env.yml):${self:provider.stage}}
stage: ${opt:stage, self:custom.defaultStage}
profile: ${opt:stage, self:custom.defaultStage}
# vpc:
# securityGroupIds: ${self:custom.securityGroupIds.${self:provider.stage}}
# subnetIds: ${self:custom.subnetIds.${self:provider.stage}}
iamRoleStatements:
- Effect: "Allow"
Action:
- "sns:Publish"
Resource: arn:aws:sns:${self:provider.region}:${self:custom.accountId}:*
custom:
accountId: ${self:custom.accountIds.${self:provider.stage}}
defaultStage: dev
accountIds:
dev: xxxxxxxx # !!!REPLACE ME!!!
prod: xxxxxxxx # !!!REPLACE ME!!!
securityGroupIds:
dev:
- sg-xxxxxxxx # !!!REPLACE ME!!!
prod:
- sg-xxxxxxxx # !!!REPLACE ME!!!
subnetIds:
dev:
- subnet-xxxxxxxx # !!!REPLACE ME!!!
- subnet-xxxxxxxx # !!!REPLACE ME!!!
prod:
- subnet-xxxxxxxx # !!!REPLACE ME!!!
- subnet-xxxxxxxx # !!!REPLACE ME!!!
package:
artifact: ${file(build/build.json):distribution}
functions:
groovy-echo:
handler: com.bytekast.GroovyFunctions::echo
tags:
VERSION: ${file(build/build.json):version}
kotlin-echo:
handler: com.bytekast.KotlinFunctions::echo
tags:
VERSION: ${file(build/build.json):version}