To avoid vendor lock in, choose open standards, platform independent tools and a modular architecture. Use technologies such as Kubernetes, Infrastructure as Code such as Terraform and containerization to keep workloads portable. Avoid proprietary PaaS services that lock you into a single ecosystem, and prefer services that are available across providers or on premises. A multi cloud or cloud agnostic approach also helps by designing infrastructure and data so you can switch or extend to other platforms more easily. Document dependencies and design for portability from the start to maintain long term flexibility.