carlquistb / FormulaCraft

An SMS-based service for running Minecraft server on AWS.
MIT License
0 stars 1 forks source link

one world stack at a time #50

Open carlquistb opened 4 years ago

carlquistb commented 4 years ago

add a check to the lambda function for opening stacks when the world is already in use.

can stack name be moved into the API, instead of a query string parameter?

carlquistb commented 4 years ago

additional checks for STACKS -- POST could be beneficial.

How to verify that there is no active stack for that world? cfn.listStacks (filtered for active stacks) to get all stack IDs needed. Could be zero. cfn.describeStacks per stack returned above. The results contain the parameters of stack creation. Check the world parameter against what was supplied in the POST request.

There should also be a helper lambda function that verifies the validity of the request parameters.