CodeYourFuture / CodeYourFuture/Module-Cloud
[TECH ED] GitHub Actions for Backend
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 0
- Forks
- 6
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Link to the coursework
https://docs.github.com/en/actions
### Why are we doing this?
## Setup Github Actions for CYF Hotel Backend deployments to EC2
**Create GitHub Actions Workflow File:** Similar to the frontend, create a new YAML file in your CYF Hotel repository under .github/workflows, and name it appropriately, like backend-ec2-deploy.yml.
**Configure AWS and SSH Credentials:** Store your AWS and SSH credentials securely using GitHub Secrets. These will be used to authenticate and connect to your EC2 instance.
**Write EC2 Deployment Steps:** Outline the steps in the YAML file for SSHing into your EC2 instance, pulling the latest code, and restarting your backend service.
**Test the Workflow:** Like with the frontend, push a change to your repository or manually trigger the workflow from GitHub Actions to ensure that your backend is successfully deployed to the EC2 instance.
### Maximum time in hours
4
### How to get help
Ask calm, curious questions with links, code samples, and no screenshots.
https://curriculum.codeyourfuture.io/guides/asking-questions/
### How to submit
In this advanced module you will demo your work. You may wish to make notes for case studies to add to your portfolio.
Beitragsleitfaden
Rechercherichtung
Lies die Kursunterlagen zu GitHub Actions unter https://docs.github.com/en/actions und untersuche den vergleichbaren Frontend-Workflow. Erstelle .github/workflows/backend-ec2-deploy.yml, konfiguriere die erforderlichen AWS- und SSH-GitHub-Secrets und definiere Schritte, um per SSH eine Verbindung zu EC2 herzustellen, den neuesten Code abzurufen und den Backend-Service neu zu starten. Erledigt ist die Aufgabe, wenn ein Push oder ein manueller Trigger das Backend erfolgreich bereitstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, github-actions, yaml
- Bereich
- backend, cloud, devops, infrastructure
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100