# AWS Server setup

## <span class="mw-headline" id="bkmrk-installing-the-serve-1">Installing the server</span>

1. Log into the AWS account
2. Choose an appropriate zone, eg. eu-north-a (Stockholm)
3. Navigate to the EC2-dashboard
4. Launch a new instance 
    1. Give it a useful name
    2. Change the *Instance type*
    3. Select a keypair that you have access to
    4. Select "Select existing security group", select: 
        1. WebAccess
        2. default
        3. DefaultSSHAccess
    5. Optional: Adjust storage
    6. Launch the isntance
5. Reserve a dedicated (elastic) IP address 
    1. Click *Allocate elastic IP address*
    2. Click *Allocate*
6. Associate the elastic IP 
    1. Find the IP in the list, click it
    2. Under *Actions* choose *Associate elastic IP address*
    3. Find the instance you just launched
7. SSH into the server and [install the CLI](https://docs.tsnocode.com/books/command-line-tools/page/current-cli)
    1. Optionally run: `ts developer-access`