-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.yml
51 lines (48 loc) · 1.24 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
service: mySolarForecast
provider:
name: aws
stage: production
runtime: python2.7
region: us-west-2
memorySize: 128
iamRoleStatements:
- Effect: "Allow"
Action:
- "ssm:GetParameters"
- "ssm:PutParameter"
Resource: "arn:aws:ssm:*:*:*"
timeout: 300
environment:
influxdb_ip: "XXX.XXX.XXX.XXX"
influxdb_port: XXXX
influxdb_user: "XXXXXXXX"
influxdb_password: "XXXXXXXX"
influxdb_database: "XXXXXXXX"
influxdb_ssl: "True or False"
influxdb_verify_ssl: "False or True"
influxdb_measurement: "XXXXXXXX"
influxdb_location: "XXXXXXXX"
long: -XX.XXXXXX
lat: XXX.XXXXX
solcast_api_key: "XXXXXXXX"
pv_roof: "[(XXX,XXXX),(-XX,XXXX)]"
package:
include:
- mySolarForecast.py
exclude:
- .git/**
- docs/**
- README.md
functions:
mySolarForecast:
name: mySolarForecast
description: Get Solar PV forecasts for the rest of the day and tomorrow.
handler: mySolarForecast.lambda_handler
events:
- schedule:
name: run-lambda-mySolarForecast-ten-api-calls-per-day
rate: rate(160 minutes)
description: Used by the mySolarForecast Lamdba function.
enabled: true
plugins:
- serverless-python-requirements