-
Notifications
You must be signed in to change notification settings - Fork 0
/
sam.qa.yml
35 lines (33 loc) · 1.82 KB
/
sam.qa.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: 'subject-heading-services'
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 60
Resources:
SubjectHeadingPoster:
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
Handler: app.handle_event
Runtime: ruby2.5
Events:
Stream:
Type: Kinesis
Properties:
Stream: arn:aws:kinesis:us-east-1:946183545209:stream/Bib-qa
BatchSize: 10
StartingPosition: LATEST
MaximumRetryAttempts: 3
BisectBatchOnFunctionError: True
DestinationConfig: arn:aws:sns:us-east-1:946183545209:SHEP
Environment:
Variables:
PLATFORM_API_BASE_URL: https://qa-platform.nypl.org/api/v0.1/
NYPL_OAUTH_URL: https://isso.nypl.org/
LOG_LEVEL: info
NYPL_OAUTH_ID: AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAGswaQYJKoZIhvcNAQcGoFwwWgIBADBVBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDGwps2kAQ2rowHoTfAIBEIAo4NrJQ8TDmuTM8fD+Ke9RAaiLxFkE4Z1SvGE5gkSsIJ0966etTQ2+qw==
NYPL_OAUTH_SECRET: AQECAHh7ea2tyZ6phZgT4B9BDKwguhlFtRC6hgt+7HbmeFsrsgAAAIcwgYQGCSqGSIb3DQEHBqB3MHUCAQAwcAYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAzqpSpOyAs6z7xuhIYCARCAQxQmBeJEIuw09MFA+nmoqMfE7ZvqsfLUCsOlDApqRhiEM3M3pfWOaoK7kTKR+37sgrYqSkZTZuMWGzzFTXa2z0QKB7c=
NYPL_CORE_S3_BASE_URL: https://s3.amazonaws.com/nypl-core-objects-mapping-production/
SHEP_API_BIBS_ENDPOINT: https://subjectheadingexplorerpoc-qa-2.pchxmxsxky.us-east-1.elasticbeanstalk.com/api/v0.1/bibs/
PARALLEL_PROCESSES: '2'