Skip to content

Instantly share code, notes, and snippets.

View jamsidedown's full-sized avatar

Rob Anderson jamsidedown

View GitHub Profile
@jamsidedown
jamsidedown / cloudfront-template.yaml
Last active June 9, 2023 08:38
A CloudFormation template for deploying a serverless websocket API on AWS with a CloudFront function to convert path parameters to query string parameters
AWSTemplateFormatVersion: "2010-09-09"
Transform: "AWS::Serverless-2016-10-31"
Resources:
ApiGateway:
Type: "AWS::ApiGatewayV2::Api"
Properties:
Name: !Sub "${AWS::StackName}-wss-api"
ProtocolType: "WEBSOCKET"
RouteSelectionExpression: "\\$default"