treasuredata

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

README

Terraform provider for Treasure Data

A Terraform plugin that provides resources for Treasure Data.

Build Status

Install


  • Download the latest release for your platform.
  • Rename the executable to terraform-provider-treasuredata

Provider Configuration


Example
provider "treasuredata" {
  api_key = "xxx"
}

or

provider "treasuredata" {}
Reference
  • api_key - (Optional)API Key of the Treasure Data. If empty, provider try use TD_API_KEY envirenment variable.

Resources


treasuredata_database

Configure a Database.

Example
resource "treasuredata_database" "foobar" {
    name = "terraform_for_treasuredata_test_foobar"
}
treasuredata_schedule

Configure a Schedule(Query).

Example

Build


$ make build

Test


$ TD_API_KEY=xxxx make test

Licence


Mozilla Public License, version 2.0

Author


Kentaro Terada

Documentation

Index

Constants

View Source
const (
	//TreasureDataAPIKeyParamName ...
	TreasureDataAPIKeyParamName = "TD_API_KEY"
)

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	APIKey string
}

Config ...

func (*Config) NewClient

func (c *Config) NewClient() (*tdClient.TDClient, error)

NewClient ...

Directories

Path Synopsis
builtin

Jump to

Keyboard shortcuts

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