Skip to content

maskedweaver/terraform-provider-metabase

Repository files navigation

terraform-provider-metabase

Deploy

Build and deploy locally using

make

Example usage

terraform {
  required_providers {
    metabase = {
      versions = ["0.1.0"]
      source   = "perxtech.com/tf/metabase"
    }
  }
}

provider "metabase" {
  host     = "https://metabase.perxtech.io"
  username = "xxxx@perxtech.com"
  password = "yyyy"
}

resource "metabase_card" "test" {
  name             = "Terraform test"
  description      = "metabase terraform provider test"
  query            = "select * from jo"
  collection_id    = 26
  enable_embedding = true
  connection_id    = 15
  variables {
    id              = "1"
    name            = "start_date"
    type            = "date"
    display_name    = "Start Date"
    required        = true
    embedding_param = "enabled"

  }
  variables {
    id              = "2"
    name            = "end_date"
    type            = "date"
    display_name    = "End Date"
    required        = true
    embedding_param = "locked"
  }
}

Import

Import using card id.

terraform import metabase_card.test 1243

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •