-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
57 lines (46 loc) · 1.51 KB
/
serverless.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# ECS Parrot Serverless Configuration
service: ecs-parrot
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
provider:
name: aws
runtime: python2.7
# Stage & Region can be overriden at CLI.
stage: ${file(serverless.env.yml):mysettings.stage}
region: ${file(serverless.env.yml):mysettings.region}
iamRoleStatements:
# Allow description of ECS clusters
- Effect: "Allow"
Action:
- "ecs:ListClusters"
- "ecs:ListServices"
- "ecs:DescribeServices"
- "ecs:DescribeTasks"
- "ecs:DescribeTaskDefinition"
Resource: "*"
# Set environentals on the Lambda:
environment:
SLACK_WEBHOOKURL: ${file(serverless.env.yml):mysettings.slack.webhookurl}
SLACK_USERNAME: ${file(serverless.env.yml):mysettings.slack.username}
SLACK_CHANNEL: ${file(serverless.env.yml):mysettings.slack.channel}
SLACK_ICON_EMOJI: ${file(serverless.env.yml):mysettings.slack.icon_emoji}
SLACK_QUIET: ${file(serverless.env.yml):mysettings.slack.quiet}
# you can define service wide environment variables here
# environment:
# variable1: value1
# you can add packaging information here
#package:
# include:
# - include-me.py
# - include-me-dir/**
# exclude:
# - exclude-me.py
# - exclude-me-dir/**
# Define the application functions
functions:
# Triggered by ECS CloudWatch events
parrot:
handler: handler.parrot
memorySize: 128 # MB
timeout: 15 # Seconds