Skip to content

rudpot/csgo-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Configure CS:GO server in AWS

Using cloudformation

  • Make sure you have an AWS account and a VPC with at least on public subnet as well an an ssh keypair; also look up your own IP to enter for the SshAccessFromThisCidrOnly from which the server can be accessed via ssh
  • Make sure you have a steam account
  • Make sure the steam account has a phone number attached
  • Create a game server license for App ID 730

Deploy using AWS console

Deploy using the CLI

  • clone this repo
  • create a parameter file like this called csgo-server-params.json - fill in the values and save ...
    [
      {
          "ParameterKey": "SshAccessFromThisCidrOnly",
          "ParameterValue": "x.x.x.x/32"
      },
      {
          "ParameterKey": "CSGOVpcId",
          "ParameterValue": "vpc-12345567890"
      },
      {
          "ParameterKey": "CSGOSubnetId",
          "ParameterValue": "subnet-12345567890"
      },
      {
          "ParameterKey": "SshKeyName",
          "ParameterValue": "my-ssh-key"
      },
      {
          "ParameterKey": "CSGOServerToken",
          "ParameterValue": "STEAMSERVERTOKEN"
      },
      {
          "ParameterKey": "CSGOServerPassword",
          "ParameterValue": "p@ssw0rd"
      },
      {
          "ParameterKey": "CSGOServerName",
          "ParameterValue": "p@ssw0rd"
      }
    ]
  • launch the stack via the CLI (you can also do this via the console but then you have to enter the parameters manually)
    aws cloudformation create-stack \
      --stack-name csgotest \
      --template-body file://csgo-server.yaml \
      --parameters file://csgo-server-params.json \
      --capabilities CAPABILITY_IAM
    aws cloudformation wait stack-create-complete \
      --stack-name csgotest

Server access and config

  • once the cloudformation stack finishes building you can ssh to the machine and check on installation progress in less /var/log/cloud-init-output.log. Note that the maps download takes a long time.
  • after the download finishes a CS:GO server should be started automatically. The server should also restart on reboot.
  • to change the startup configuration edit /home/ubuntu/server-start.sh. In particular you might want to add +sv_tags to make it easier to find your server
  • to see the server log output check /var/log/csgo.log.

Manually

Follow this: https://medium.com/@alihusseinat/how-to-setup-a-counter-strike-go-dedicated-server-on-aws-5ca80e2acf4f

Changes:

Notes

sudo -- sh -c 'dpkg --add-architecture i386; add-apt-repository multiverse; apt-get update; apt-get -y dist-upgrade'
sudo apt install libsdl2-2.0-0:i386
# This requires manually accepting steam license ... 
sudo apt-get install -y steamcmd

About

Setting up a CS:GO server in AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published