It's a Platform as a Code to let you deliver, build, manage cloud resource and dependencies right from the code in order to:
- get rid of .env files
- give 0 buttons clicking on a platform
- provide easy debugging across the system
- testable infra
- pluggable system
TBD
- install go https://go.dev/doc/install
- install docker or colima in order to run docker-compose dev environment
- run the dev environment using
docker compose up
ordocker-compose up
- run
go run cmd/server/main.go
- start using api: e.g. create your repository connection
curl -X POST -v http:https://localhost:8000/connect -d '{"url": "http:https://github.com/whatever/youwant"}'
Treenq CDK is responsible for defining infrastracture setup given from the user's space
state.
It uses only postgres as a dependency. However, any other persistent storage can be implemented as a infra state store.
When the desired infrastracture change is defined the following behaviour is expected.
- It creates a lock in order to allow infra update to only single process
- It opens an "open" record to prepare a resource creation
- It creates the infra resource
- On fail it updates the record to status "reverted" and returns the defined error
- It updates the record to status "done"
- It unlocks the lock