Am a relatively noob machine learning engineer interested in DevOps and Software Development, sorry for the vague and opinion based question.
But multiple blogs and tutorials teaching some cloud concepts advise me against using services that will result in vendor lock in, but do not make clear what kind of services are they.
As an example, if I am using automated scripts to manage cloud server boot ups etc. then should I use open source scripts like Terraform, instead of AWS or Azure CLI?
When I am orchestrating Docker containers and running web services, should I refrain from using higher level abstractions such as Fargate or ECS, restoring to firing up containers inside an EC2 instance like an on-prem Linux server?
But in any case, I would still have to use very cloud specific solutions and APIs to interact with them, right? For example, Amazon S3 bucket vs Azure blog storage offer similar services, but with different APIs.
Or am I getting the concept somehow entirely wrong, and it means something totally different. Some examples of decisions which do or do not result in the so called vendor lock in will be greatly appreciated.
Apologies for the beginner question again.