MCPcopy Index your code
hub / github.com/SumoLogic/terraform-provider-sumologic

github.com/SumoLogic/terraform-provider-sumologic @v3.2.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.2.10 ↗ · + Follow
2,146 symbols 5,797 edges 272 files 50 documented · 2% updated 1d agov3.2.9 · 2026-06-30★ 4496 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Terraform logo

Terraform Provider for Sumo Logic

The Terraform Sumo Logic provider is a plugin for Terraform that allows for the full lifecycle management of Sumo Logic resources.

This provider is maintained by Sumo Logic.

Prerequisites

Getting started

Add the Sumo Logic provider to your terraform configuration:

terraform {
    required_providers {
        sumologic = {
            source = "sumologic/sumologic"
            version = "" # set the Sumo Logic Terraform Provider version
        }
    }
}

Run terraform init to automatically install the selected version of the provider.

See the provider documentation for information on the supported resources and example usage.

Developing the provider

Build from source

$ git clone https://github.com/SumoLogic/terraform-provider-sumologic.git
$ cd terraform-provider-sumologic
$ make build

This will build the provider and put the provider binary in the $GOPATH/bin directory.

Run locally-built provider

  • Run make install-dev
  • Update the provider source in your configuration file:
terraform {
  required_providers {
    sumologic = {
      source = "sumologic.com/dev/sumologic"
      version = "~> 1.0.0"
    }
  }
}

Acceptance tests

Note: Acceptance tests create real resources, and often cost money to run.

Configuration

Create a personal access key for your Sumo Logic account, and set the following environment variables.

$ export SUMOLOGIC_ACCESSID="yourAccessID"
$ export SUMOLOGIC_ACCESSKEY="yourAccessKey"
$ export SUMOLOGIC_ENVIRONMENT="yourEnvironment"
$ export SUMOLOGIC_BASE_URL="yourEnvironmentAPIUrl"  # not required for most production deployments
$ export TF_ACC=1

More information on configuration can be found here.

Run the tests

# Run all acceptance tests:
$ make testacc
# Run a specific test:
$ go test -v ./sumologic  -run YourSpecificTestName

Some tests require additional configuration for interacting with resources external to Sumo Logic:

  • GCP metrics
  • export SUMOLOGIC_TEST_GOOGLE_APPLICATION_CREDENTIALS=$(cat /path/to/service_acccount.json)
  • export SUMOLOGIC_ENABLE_GCP_METRICS_ACC_TESTS="false" to disable acceptance tests

Extension points exported contracts — how you extend this code

HttpClient (Interface)
(no doc) [1 implementers]
sumologic/sumologic_client.go

Core symbols most depended-on inside this repo

Get
called by 962
sumologic/sumologic_client.go
Put
called by 80
sumologic/sumologic_client.go
Post
called by 73
sumologic/sumologic_client.go
Delete
called by 57
sumologic/sumologic_client.go
toSingletonArray
called by 41
sumologic/resource_sumologic_monitors_library_monitor.go
resourceToStringArray
called by 36
sumologic/sumologic_cse_rule_common.go
MakeTerraformObject
called by 27
sumologic/util.go
fromSingletonArray
called by 22
sumologic/resource_sumologic_monitors_library_monitor.go

Shape

Function 1,471
Struct 339
Method 333
TypeAlias 2
Interface 1

Languages

Go100%

Modules by API surface

sumologic/resource_sumologic_monitors_library_monitor_test.go56 symbols
sumologic/resource_sumologic_monitors_library_monitor.go50 symbols
sumologic/resource_sumologic_dashboard.go49 symbols
sumologic/sumologic_client.go27 symbols
sumologic/sumologic_dashboard.go24 symbols
sumologic/resource_sumologic_log_search.go24 symbols
sumologic/resource_sumologic_generic_polling_source.go23 symbols
sumologic/util.go22 symbols
sumologic/sumologic_cse_match_list_item.go22 symbols
sumologic/resource_sumologic_slo.go21 symbols
sumologic/sumologic_log_search.go17 symbols
sumologic/sumologic_cse_rule_common.go17 symbols

For agents

$ claude mcp add terraform-provider-sumologic \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page