-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yml
More file actions
30 lines (28 loc) · 735 Bytes
/
template.yml
File metadata and controls
30 lines (28 loc) · 735 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
30
AWSTemplateFormatVersion: 2010-09-09
Transform:
- AWS::Serverless-2016-10-31
- AWS::CodeStar
Parameters:
ProjectId:
Type: String
Description: CodeStar projectId used to associate new resources to team members
Resources:
Floofer:
Type: AWS::Serverless::Function
Properties:
Handler: app.handler
Runtime: python3.6
Role:
Fn::ImportValue:
!Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
Environment:
Variables:
name: Floof Bot
GROUPME_BOT_ID: 587721b6440c35e69e74c2652e
BOT_NAME: Lambda Floof
Events:
PostEvent:
Type: Api
Properties:
Path: /
Method: post