Beispiel CI/CI Pipeline nach AWS, eines simplen Nginx Image
Wie man ein einfaches NGINX image erstellt könnt Ihr in diesem Tutorial nachbauen.
Da wird auch darauf eingegangen, dass ihr direkt ein offizielles Image von Nginx angeben könnt. Das ist in der praxis vorzuziehen, zum über ist es aber gut es selbst zu bauen.
- Basic Nginx Image
- Docker Compose file to build Nginx
- Connect to AWS with aws-cli from github actions
- Configure terraform to work on AWS / Basic EC2
- Add devcontainer
- .devcontainer in github.dev nicht möchlich :(
- .devcontainer with aws-cli, terraform and kamal working
- Configure aws registry via terraform
- Build nginx and push it to registry
- We should not commit the "terraform.tfstate" file
- It is deleted after every deploy so resources are created multiple times
- We import the resources now live!! 😄
- Check resouces with aws-cli and import them with terraform
- HTML Linting
- Install Kamal
- repository info to kamal via env
- Remote SSH ection with public ip
- Access nginx via http port 80
- add .editorconfig
- Kamal config under ./kamal and not ./config
- Access nginx via https port 443 and letsencrypt
- [] Deploy nginx container to aws fargate