Imperative approach

Intuitive, step-by-step way.

Example:

CLI along with a bash script like:

cli create k8s
...
cli create vm
...
cli create vpc
...

Disadvantages:

  • when you need to scale it up or down you need to write custom scripts
  • doesn't scale well
  • if you run multiple times, it will create each time
  • you have to add error handling when one of the steps fails halfway