Example serverless application on AWS using Valve Source Engine query protocol
Example curl request to find a player by name on any Source Engine game supported by python-valve package (A2S query).
curl \
-X POST \
-v \
"https://<link>.execute-api.us-east-1.amazonaws.com/dev/operate" \
-H "x-api-key: <KEY>" \
--data '{ "action": "find", "query": { "map": "gm_buildscapes_a2", "player": "Draiget", "regions": ["all"] }}'
Where a <KEY>
you can obtain running terraform output -json
command after provisioning infrastructure.
Application can be deployed within FreeTier usage.
Use following steps to deploy application (assumes that you're in the folder where this README.md are placed):
- Package lambda functions:
(cd remote/app && ./lambda_build.sh)
- Apply terraform:
(cd remote/infrastructure && terraform apply -auto-approve)
- Validate using example in Player lookup