Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add example to README on how to access the lambdas #23

Open
johnweland opened this issue Sep 25, 2021 · 1 comment
Open

Comments

@johnweland
Copy link

Forgive me I am an AWS noob, I assume to hit the lambdas for starting and stopping the server I would use API Gateway and Postman? However this looks likes it is expecting an auto token. Can you flesh out a bit of a guide in the FAQ's in the README perhaps?

I see the project hasn't been updated in a number of months. I think this is an amazing project and hope it doesn't fall to the wayside. Let me know how I can help if at all.

@rjaduthie
Copy link
Contributor

rjaduthie commented Jan 22, 2023

You're right that this is not clear from the documentation. Some improvement could be made. I might take some time to do this in the next few days. Maybe it could do something like:


Once you have deployed ValheimServer/LambdaEcsFargateUpdownstatusStack, you can control the server by using:

NB., the API domain is returned when running npx cdk deploy ValheimServer/LambdaEcsFargateUpdownstatusStack but is also available after the stack is deployed in the API Gateway section of the AWS web console

Get server status

https://[YOUR_API_DOMAIN]/prod/serverstatus

Stop server

https://[YOUR_API_DOMAIN]/prod/startstop?key=[PASSWORD_SET_IN_DOTENV]&desireCount=0

Start server

https://[YOUR_API_DOMAIN]/prod/startstop?key=[PASSWORD_SET_IN_DOTENV]&desireCount=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants