Skip to content

Simple web socket implementation with AWS Lambda and API Gateway

Notifications You must be signed in to change notification settings

kelvinmwinuka/aws-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set up local DynamoDB

awslocal dynamodb create-table \
--table-name ConnectionTable \
--attribute-definitions AttributeName=Username,AttributeType=S AttributeName=ConnectionId,AttributeType=S \
--key-schema AttributeName=Username,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 \
--global-secondary-indexes \
  "[
    {
      \"IndexName\": \"ConnectionIdIndex\",
      \"KeySchema\": [
        {
          \"AttributeName\":\"ConnectionId\",
          \"KeyType\":\"HASH\"
        }
      ],
      \"Projection\": {
        \"ProjectionType\":\"ALL\"
      },
      \"ProvisionedThroughput\": {
        \"ReadCapacityUnits\": 1,
        \"WriteCapacityUnits\": 1
      }
    }
  ]"

About

Simple web socket implementation with AWS Lambda and API Gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published