Cloud computing and the virtualization of network devices have led to more organizations adopting DevOps best practices for network infrastructure management. This allows administrators to design, test, deploy, and manage infrastructure programmatically, improving efficiency and performance. However, when modern Infrastructure as Code (IAC) practices rely on old networking paradigms, security issues persist. Modern approaches based on Zero Trust principles integrate with IAC to improve both access and security. Traditional network architectures tightly couple access to the network infrastructure, leading to security, manageability, and performance issues. Decoupling access from the way infrastructure is architected overcomes many of these issues. Network architectures based on Zero Trust principles are more secure, performant, and easier to manage. Administrators can use IAC tools to manage their software-based Zero Trust solutions, integrating security and access control with automated infrastructure management processes.