docs: add AWS AMI upgrade instructions (#16973)

followup to @d1str0's #16937 

> Adds a small note for those who just used the AWS AMI for their
initial installation.

This PR rearranges the Upgrade doc to use tabs for each section + adds
AWS AMI

[preview](https://coder.com/docs/@upgrade-tabs/install/upgrade)

---------

Co-authored-by: Brady Sullivan <brady@bsull.com>
Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
This commit is contained in:
Edward Angert
2025-03-19 10:10:58 -04:00
committed by GitHub
parent 4a548021c3
commit bd243c17fb

View File

@ -1,33 +1,37 @@
# Upgrade # Upgrade
This article walks you through how to upgrade your Coder server. This article describes how to upgrade your Coder server.
> [!CAUTION] > [!CAUTION]
> Prior to upgrading a production Coder deployment, take a database snapshot since > Prior to upgrading a production Coder deployment, take a database snapshot since
> Coder does not support rollbacks. > Coder does not support rollbacks.
To upgrade your Coder server, simply reinstall Coder using your original method ## Reinstall Coder to upgrade
To upgrade your Coder server, reinstall Coder using your original method
of [install](../install). of [install](../install).
## Via install.sh ### Coder install script
If you installed Coder using the `install.sh` script, re-run the below command 1. If you installed Coder using the `install.sh` script, re-run the below command
on the host: on the host:
```shell ```shell
curl -L https://coder.com/install.sh | sh curl -L https://coder.com/install.sh | sh
``` ```
The script will unpack the new `coder` binary version over the one currently 1. If you're running Coder as a system service, you can restart it with `systemctl`:
installed. Next, you can restart Coder with the following commands (if running
it as a system service):
```shell ```shell
systemctl daemon-reload systemctl daemon-reload
systemctl restart coder systemctl restart coder
``` ```
## Via docker-compose ### Other upgrade methods
<div class="tabs">
### docker-compose
If you installed using `docker-compose`, run the below command to upgrade the If you installed using `docker-compose`, run the below command to upgrade the
Coder container: Coder container:
@ -36,12 +40,30 @@ Coder container:
docker-compose pull coder && docker-compose up -d coder docker-compose pull coder && docker-compose up -d coder
``` ```
## Via Kubernetes ### Kubernetes
See See
[Upgrading Coder via Helm](../install/kubernetes.md#upgrading-coder-via-helm). [Upgrading Coder via Helm](../install/kubernetes.md#upgrading-coder-via-helm).
## Via Windows ### Coder AMI on AWS
1. Run the Coder installation script on the host:
```shell
curl -L https://coder.com/install.sh | sh
```
The script will unpack the new `coder` binary version over the one currently
installed.
1. Restart the Coder system process with `systemctl`:
```shell
systemctl daemon-reload
systemctl restart coder
```
### Windows
Download the latest Windows installer or binary from Download the latest Windows installer or binary from
[GitHub releases](https://github.com/coder/coder/releases/latest), or upgrade [GitHub releases](https://github.com/coder/coder/releases/latest), or upgrade
@ -50,3 +72,5 @@ from Winget.
```pwsh ```pwsh
winget install Coder.Coder winget install Coder.Coder
``` ```
</div>