Skip to content

Commit

Permalink
update cloudformation template
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrodzicki committed May 17, 2018
1 parent 8bdcacd commit 11ed71f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cloudformation/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Parameters:
MinLength: 1

Resources:
SubscriberFunctionRole:
FunctionRole:
Type: 'AWS::IAM::Role'
Properties:
AssumeRolePolicyDocument:
Expand All @@ -36,7 +36,7 @@ Resources:
- 'logs:*'
Resource: '*'

SubscriberFunction:
Function:
Type: 'AWS::Serverless::Function'
Properties:
CodeUri:
Expand All @@ -47,12 +47,12 @@ Resources:
Handler: main
Runtime: go1.x
Timeout: 30
Role: !GetAtt SubscriberFunctionRole.Arn
Role: !GetAtt FunctionRole.Arn
Environment:
Variables:
DESTINATION_FUNCTION_ARN: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${FunctionName}'
Events:
ScheduleSubscribeFunction:
ScheduleFunction:
Type: Schedule
Properties:
Schedule: rate(5 minutes)

0 comments on commit 11ed71f

Please sign in to comment.