Skip to content

Commit

Permalink
rename service, add DEPLOY_STAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerholcomb committed Apr 10, 2021
1 parent ba7b858 commit 184e7d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import os
from lib.Notifier import Notifier
from lib.Fetcher import Fetcher

def main(event, context):
# print("event:", event)
# print("context:", context)
source = 'tdem'
env = 'stage'

env = os.environ.get('DEPLOY_STAGE')
if env != 'dev':
Fetcher(source)
notifier = Notifier(source, env)
Expand Down
19 changes: 8 additions & 11 deletions cloud_functions/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
service: vaccinate-texas
service: go-get-it-health
frameworkVersion: '2'

provider:
name: aws
runtime: python3.7
profile: default
lambdaHashingVersion: 20201221
environment:
DEPLOY_STAGE: ${opt:stage,'dev'}
apiGateway:
shouldStartNameWithService: true
iamRoleStatements:
- Effect: "Allow"
Action:
Expand All @@ -15,24 +19,17 @@ provider:
Action:
- secretsmanager:*
Resource: '*'

functions:
notifier_tdem:
handler: notifier_tdem.main
handler: notifier_tdem_handler.main
timeout: 600
layers:
- arn:aws:lambda:us-east-1:359698300326:layer:vtx-sls-layer:1
events:
- schedule:
rate: rate(10 minutes)
# notifier_heb:
# handler: notifier_heb.main
# layers:
# - arn:aws:lambda:us-east-1:359698300326:layer:vtx-sls-layer:1
# events:
# - schedule:
# rate: rate(10 minutes)
sms_inbound_handler:
sms_inbound:
handler: sms_inbound_handler.main
events:
- http:
Expand Down

0 comments on commit 184e7d5

Please sign in to comment.