What is vendor lock-in?

Some examples?

Why this approach is dangerous?

Vendor lock-in only in choosing the public cloud provider?

What should I do then?