Skip to content

CiscoDevNet/terraform-provider-meraki

Tests

Terraform Provider Meraki

The Meraki provider provides resources to interact with a Cisco Meraki Dashboard. It communicates with Meraki Dashboard via the REST API.

Please note that this Terraform provider is developed and maintained by a dedicated community of contributors. It is not directly supported by Cisco. While we strive to ensure the provider is robust and reliable, its development relies on community contributions and engagement.

There is another Terraform Provider for Meraki developed and supported by Cisco, which is available here.

All resources and data sources have been tested with the following API releases.

API Version
Meraki Dashboard 1.51.1

Documentation: https://registry.terraform.io/providers/CiscoDevNet/meraki/latest

Requirements

Support

As this is a community-driven project, support is provided by the community. If you encounter issues or have questions, please use the following resources:

  • GitHub Issues: Report bugs or request features on our GitHub Issues page.
  • Discussion Forums: Engage with other users and contributors on GitHub Discussions.

Contributing

We welcome contributions from the community! If you'd like to contribute, please follow our contribution guidelines. Whether it's reporting bugs, suggesting features, or submitting pull requests, your involvement helps improve the project for everyone.

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Adding Dependencies

This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.

To add a new dependency github.com/author/dependency to your Terraform provider:

go get github.com/author/dependency
go mod tidy

Then commit the changes to go.mod and go.sum.

Using the provider

This Terraform Provider is available to install automatically via terraform init. If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Additional documentation, including available resources and their arguments/attributes can be found on the Terraform documentation website.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

More information about how the code generation works can be found in the contribution guide.

Acceptance tests

In order to run the full suite of acceptance tests, run make testall. Make sure the respective environment variables are set (e.g., MERAKI_API_KEY).

Note: Acceptance tests create real resources.

make testall

More information about how the acceptance tests work can be found in the contribution guide.