Skip to content

ajbosco/terraform-provider-segment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-provider-segment

A Terraform provider for Segment

Usage

Create and manage Segment sources

resource "segment_source" "test_source" {
  source_name = "your-source"
  catalog_name = "catalog/sources/javascript"
}

Create and manage Segment destinations

resource "segment_destination" "test_destination" {
  source_name = "test_source"
  destination_name = "google-analytics"
  connection_mode = "CLOUD"
  enabled = false
  configs = [{
      name = "workspaces/your-workspace/sources/your-source/destinations/google-analytics/config/trackingId"
      type = "string"
      value = "your-tracking-id"
  }]
}