Skip to content

Meraki as Code Explained

The Network as Code (NaC) for Meraki, referred to as “Meraki as Code”, solution is designed to provide a comprehensive Infrastructure as Code (IaC) solution for managing network configurations on Cisco Meraki Dashboard. The current solution leverages Terraform or OpenTofu as the automation engine. This capability utilizes the Cisco Terraform Meraki Provider.

The provider offers a collection of Terraform resources and data sources that enable users to define and manage organizations, networks, devices, SSIDs, VLANs, traffic-shaping, and other Dashboard configurations entirely as code. It interacts directly with the Meraki Dashboard REST API to translate declarative HCL definitions into concrete network state.

High-level code flow

The best first step to onboarding with the solution is to utilize the central template repository provided by Cisco. This example repository provides the correct file structure and all necessary files to get started with the solution. The repository includes a comprehensive README file that provides detailed instructions on how to set up the repository for execution.

We have also provided a comprehensive walkthrough that explains how to gain hands-on experience with the solution.