Skip to content

Commit

Permalink
Merge pull request #729 from PRX/feat/enable_boostr_export
Browse files Browse the repository at this point in the history
Enable boostr impression export
  • Loading branch information
cavis authored Nov 30, 2023
2 parents 1f0f6a2 + 00145d5 commit c7b7fad
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions spire/templates/apps/dovetail-metrics-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,37 @@ Resources:
FunctionName: !Ref ExportFunction
Principal: events.amazonaws.com
SourceArn: !GetAtt TedNetworkExport.Arn

BoostrIntegration:
Type: AWS::Events::Rule
Condition: EnableProductionRules
Properties:
Description: Boostr integration impression export
RoleArn: !GetAtt RulesRole.Arn
ScheduleExpression: cron(15 0 * * ? *) # 00:15 UTC every day
State: ENABLED
Targets:
- Arn: !GetAtt ExportFunction.Arn
Id: !Sub "${RootStackName}.Export.BoostrIntegration"
Input: |-
{
"Extractions": ["boostr_impressions"],
"IntegrationsIDs": [1],
"CompressionType": "NONE",
"DestinationFormat": "CSV",
"ObjectPrefix": "boostr/",
"Copies": [
{
"Mode": "AWS/S3",
"BucketName": "prx-boostr-data-exports"
}
]
}
BoostrIntegrationInvokePermission:
Condition: EnableProductionRules
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName: !Ref ExportFunction
Principal: events.amazonaws.com
SourceArn: !GetAtt BoostrIntegration.Arn

0 comments on commit c7b7fad

Please sign in to comment.