aws eks update-kubeconfig --name talebound --region eu-central-1
kubectl config use-context arn:aws:eks:eu-central-1:871098816149:cluster/talebound
AWS EC2 pricing - https://aws.amazon.com/ec2/pricing/on-demand/
AWS EKS pod count - https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt
https://cert-manager.io/docs/installation/kubectl/
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.7.0/deploy/static/provider/aws/deploy.yaml
https://gnuwin32.sourceforge.net/packages/make.htm
- https://sourceforge.net/projects/gnuwin32/
- install
- add to path system variables
> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
> irm get.scoop.sh | iex
https://github.com/ScoopInstaller/Scoop#readme
scoop install migrate
- add migrate to path system variables (in ~\scoop\apps\migrate\ [version])
docker run --rm -v "%cd%:/src" -w /src kjconroy/sqlc generate
go get github.com/lib/pq
go get github.com/stretchr/testify
make new_migration name=migration_name
migrate create -ext sql -dir db/migration -seq migration_name
For converting dbml schemas to SQL
npm install -g @dbml/cli
https://stedolan.github.io/jq/download/
https://grpc.io/docs/languages/go/quickstart/
Latest release: https://github.com/protocolbuffers/protobuf/releases
$ go install google.golang.org/protobuf/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]
- create new migration
migrate create -ext sql -dir db/migration -seq migration_name
- edit migration up/down sql files
- run migrations -
make migrateup
- create new query files in -
db/query
- SQLC - generate sql.go file
make sqlc-generate
- run mockgen -
make mock
- run tests -
make test