-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
46 lines (42 loc) · 1.15 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
service: manualawscleanup # NOTE: update this with your service name
provider:
name: aws
runtime: dotnetcore2.1
region: ${env:REGION}
deploymentBucket: ${env:SOURCE_BUCKET}
iamRoleStatements:
- Effect: "Allow"
Action:
- "ec2:Describe*"
Resource: '*'
- Effect: "Allow"
Action:
- "ec2:DeregisterImage"
Resource: '*'
- Effect: "Allow"
Action:
- "ec2:DeleteSnapshot"
Resource: '*'
- Effect: "Allow"
Action:
- "s3:*"
Resource: '*'
- Effect: "Allow"
Action:
- "lambda:Invoke*"
Resource: '*'
package:
artifact: ./Base2.Lambdas.zip
functions:
AMIReport:
handler: Base2.Lambdas::Base2.Lambdas.Handlers.AMIReportAndCleanup::UploadAMIReport
timeout: 300
AMICleanup:
handler: Base2.Lambdas::Base2.Lambdas.Handlers.AMIReportAndCleanup::DeregisterReportedAMIs
timeout: 300
EBSReport:
handler: Base2.Lambdas::Base2.Lambdas.Handlers.EBSReportAndCleanup::UploadEBSReport
timeout: 300
EBSCleanup:
handler: Base2.Lambdas::Base2.Lambdas.Handlers.EBSReportAndCleanup::CleanupFromReport
timeout: 300