Last active
November 19, 2018 08:39
-
-
Save foamdino/e60e8ade870b503f4a176a26123647a9 to your computer and use it in GitHub Desktop.
SAM file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: '2010-09-09' | |
| Transform: AWS::Serverless-2016-10-31 | |
| Description: > | |
| SAM template for lambstatus application | |
| # More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst | |
| Globals: | |
| Function: | |
| Timeout: 10 | |
| Resources: | |
| MainAPI: | |
| Type: AWS::Serverless::Api | |
| Properties: | |
| StageName: Prod | |
| RoutingConfigTable: | |
| Type: AWS::Serverless::SimpleTable | |
| Properties: | |
| PrimaryKey: | |
| Name: routingKey | |
| Type: String | |
| MainIncidentMapTable: | |
| Type: AWS::Serverless::SimpleTable | |
| Properties: | |
| PrimaryKey: | |
| Name: victorOps_id | |
| Type: String | |
| VictorOpsAdaptorFunction: | |
| Type: AWS::Serverless::Function | |
| Properties: | |
| CodeUri: victoropsadaptor/build/ | |
| Handler: app.lambda_handler | |
| Runtime: python3.6 | |
| Policies: | |
| - DynamoDBCrudPolicy: | |
| TableName: !Ref MainIncidentMapTable | |
| - DynamoDBCrudPolicy: | |
| TableName: !Ref RoutingConfigTable | |
| Environment: | |
| Variables: | |
| MAPPING_TABLE_NAME: !Ref MainIncidentMapTable | |
| ROUTING_TABLE_NAME: !Ref RoutingConfigTable | |
| Events: | |
| victorOpsEvent: | |
| Type: Api | |
| Properties: | |
| RestApiId: !Ref MainAPI | |
| Path: /convertFrom/victorOps | |
| Method: post |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment