---
tags:
- upnote-import
---
# Appflowy-Cloud Self-Hosting EC2
[Link What's New](https://appflowy.io/what-is-new)
# Server
# File-Storage
Bucket unter Amazon angelegt, und kein Hosting eines separaten Minio Containers.
IAM User "[kbappflowy](https://473473139163.signin.aws.amazon.com/console)" angelegt und Access-Key und Secret angelegt
mit [Policy-Generator](https://awspolicygen.s3.amazonaws.com/policygen.html) Policy angelegt, die nur den Af-Bucket und den User kbappflowy erlaubt
## EC2 Instanz
SSH-Key erstellt, Typ Putty und RSA
C:\\Users\\d-chrka.INTERNAL\\OneDrive\\Backup\\.ssh\\EC2\_Amazon\_pakabu1.ppk

Ubuntu Instanz in Ireland mit 30 GB im kostenlosen Plan erstellt

### Firewall-Einstellung:

### öffentliche IP

### Putty Login
username: [ubuntu@34.243.126.221](mailto:ubuntu@34.243.126.221)
Pfad zum Key einstelle

## Docker Konfiguration
## Docker-Host installieren
siehe offizielle Docker Doku
[https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/EC2\_SELF\_HOST\_GUIDE.md](https://github.com/AppFlowy-IO/AppFlowy-Cloud/blob/main/doc/EC2_SELF_HOST_GUIDE.md)
[https://docs.docker.com/engine/install/ubuntu/#installation-methods](https://docs.docker.com/engine/install/ubuntu/#installation-methods)
### Auth for GitHub
OAth Settings in GitHub:
Client ID: Ov23liPnM2dDg0nwkv1m
Secret: 837a7a3ee596051dc51dd8abc83b65bda3bcb08b
Github -> Profile -> Settings -> Developer Settings -> OAuth Apps

- [Elastic IPs](https://eu-west-1.console.aws.amazon.com/ec2/home?region=eu-west-1#Addresses:) einrichten, und mit der IP der lokalen Instanz verbinden
- Test
weitere Links: [https://ec2-34-247-92-92.eu-west-1.compute.amazonaws.com/gotrue/settings](https://ec2-34-247-92-92.eu-west-1.compute.amazonaws.com/gotrue/settings)
OpenAIKey:
sk-svcacct-mn76x4Y-\_attBjJgSwhyrZEMM7VbPxEYVlnNnAqrI8WcNgnl6KE\_SgFeFuxCr69T3BlbkFJZkFXi3cVrLtOQ6uET-fRxYDw9UXgiTWpeWrubyMQN6IeS-cYHCuujk\_rsxNadFgA
# Upgrade
- git pull auf master brache, änderungen in den branche amazon\_deployment megern
- upload projektordner
- docker compose pull
# Troubelshoot
Instanz Stoppen:
```
aws ec2 stop-instances --instance-ids i-085b44d8201198b2e --force
```