-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
97 lines (72 loc) · 3.69 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
service: eu-gas-detector
useDotenv: true
frameworkVersion: '3'
provider:
name: aws
runtime: python3.8
region: eu-west-1
iamRoleStatements:
- Effect: Allow
Action:
- ses:SendEmail
- ses:SendRawEmail
- dynamodb:GetItem
- dynamodb:PutItem
Resource: "*"
deploymentBucket:
name: serverless-deployment-gw
serverSideEncryption: AES256
environment:
API_ID: { "Ref" : "ApiGatewayRestApi" }
DYNANODB_TABLE: ${env:DYNAMODB_TABLE}
SOURCE_EMAIL: ${env:SOURCE_EMAIL}
RECIPIENT_EMAILS: ${env:RECIPIENT_EMAILS}
TWITTER_CONSUMER_KEY: ${env:TWITTER_CONSUMER_KEY}
TWITTER_CONSUMER_SECRET: ${env:TWITTER_CONSUMER_SECRET}
TWITTER_ACCESS_TOKEN: ${env:TWITTER_ACCESS_TOKEN}
TWITTER_ACCESS_SECRET: ${env:TWITTER_ACCESS_SECRET}
ASKTHEEU_EMAIL: ${env:ASKTHEEU_EMAIL}
ASKTHEEU_PASSWORD: ${env:ASKTHEEU_PASSWORD}
GUEST_TEMPLATE: gas company
GUESTS_TEMPLATE: gas companies
HOST_TEMPLATE: EU official
HOSTS_TEMPLATE: EU officials
TWEET_TEMPLATE: Gas detected! A meeting between {hosts_string_twitter} and {guests_string_twitter} was scheduled for {date_string}
TWEET_TAGLINE: "Just like big tobacco is banned from lobbying on health, we need #FossilFreePolitics to achieve #ClimateAction"
TWEET_HISTORIC_LINE: ", but was only just published"
TWEET_HISTORIC_CUTOFF_DAYS: 14
FOI_SUBJECT_TEMPLATE: "Access to documents request: {date} meeting between {hosts_string} and {guests_string}"
FOI_BODY_TEMPLATE: >-
Dear Sir or Madam,
Referring to Regulation (EC) No 1049/2001 on public access to EU documents and to the 'Aarhus Convention' I would herewith like to ask for access to the following:
All documents—including but not limited to correspondence, emails, minutes, notes (hand written or electronic), audio or video recordings, verbatim reports, operational conclusions, lines to take, briefings, and presentations—related to the meeting on {date_string} between {hosts_string} and {guests_string}.
In consideration of the environment I would prefer to receive documents electronically.
I would like to make clear I prefer you produce the documents on a rolling basis. At no point should the Commission's search for—or deliberations concerning—certain documents delay the production of others that the Commission has already retrieved and elected to produce.
Should my request be denied wholly or partially, please explain the denial or all deletions referring to specific exemptions in the regulation. Also I would expect the partial release of documents in case of partial exemption according to article 4.6. I reserve the right to appeal.
Please confirm having received this application. I look forward to your reply within 15 business days, according to the regulation.
If anything is unclear or would benefit from further discussion please do not hesitate to contact me by email or on +44 7525 592 738. My address for any written correspondence necessary is Barnaby Pace, Global Witness, c/o WeWork, Rue de Commerce 31 / Handelsstraat 31, 1000 Brussels, Belgium.
Thank you for your assistance.
Yours sincerely
Barnaby Pace
functions:
detector:
handler: detector.lambda_handler
timeout: 600
events:
- schedule: rate(1 day)
actor:
handler: actor.lambda_handler
events:
- http:
method: get
path: /
package:
include:
- data/**
plugins:
- serverless-python-requirements
- serverless-dotenv-plugin
- serverless-deployment-bucket
custom:
pythonRequirements:
dockerizePip: non-linux