terraform-provider-segment

command module
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

terraform-provider-segment

The terraform-provider-segment is a custom Terraform plugin to manage Segment infrastructure via code.

Requirements

Contributing

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.

Developing the Provider

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

To build the provider run:

$ make build

This will build the provider binary and move it to the bin/ directory.

To generate or update documentation, run go generate.

Writing Acceptance Tests

Acceptance tests should be written for every new resource/data source. resource_destination_filter_test.go can be used as an example. A Segment token with read/write access to Sources and Tracking Plans will be required to run the tests and be stored in SEGMENT_ACCESS_TOKEN. The workspace to run the tests in must also be specified in SEGMENT _WORKSPACE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL