Declarative approach

  • Define the final state of your infrastructure
  • It lets the provider handle the rest
  • managed through simple config maps
k8s resource
  host: ...
vm resource
  domain: ...
vpc resource
  subnets: ...
...

Advantages:

  • no matter how many times you run the script you end up with the same infrastructure. Example: run later to ensure the infrastructure hasn't changed