Skip to content

andrew-waters/moltin-terraform-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Moltin Provider

This provider enables Moltin stores to manage the resources on their store - settings, currencies, products, categories, collections, brands, integrations, promotions payments gateways, customers, addresses and files.

Basic Usage

provider "moltin" {
  client_id     = "${var.moltin_client_id}"
  client_secret = "${var.moltin_client_secret}"
}

resource "moltin_settings" "settings" {
  page_length          = 25
  list_child_products  = false
  additional_languages = ["de"]
}

resource "moltin_currency" "GBP" {
  code                = "GBP"
  exchange_rate       = 1
  format              = "£{price}"
  decimal_point       = "."
  decimal_places      = 2
  thousand_separator  = ","
  default             = true
  enabled             = true
}

resource "moltin_product" "your_product" {
  name            = "Your Product"
  slug            = "your-product"
  sku             = "y.p.001"
  description     = "An amazing product"
  status          = "live"
  commodity_type  = "physical"
  manage_stock    = false

  price {
    amount        = 9999
    currency      = "GBP"
    includes_tax  = true
  }
}

Supported Resources

  • Products
    • name
    • slug
    • sku
    • manage_stock
    • description
    • price
    • status
    • commodity_type
    • relationships
    • variations
  • Settings
    • page_length
    • list_child_products
    • additional_languages
  • Files
    • file_name
    • mime_type
    • public
  • Currencies
    • code
    • exchange_rate
    • format
    • decimal_point
    • thousand_separator
    • decimal_places
    • default
    • enabled
  • Brands
    • name
    • slug
    • description
    • status
    • relationships
  • Categories
    • name
    • slug
    • description
    • status
    • relationships
  • Collections
    • name
    • slug
    • description
    • status
    • relationships
  • Payment Gateways
    • Adyen
      • enabled
      • test
      • username
      • password
      • merchant_account
    • Braintree
      • enabled
      • environment
      • merchant_id
      • private_key
      • public_key
    • CardConnect
      • enabled
      • merchant_id
      • username
      • password
    • Stripe
      • enabled
      • login
  • Integrations
    • enabled
    • name
    • description
    • integration_type
    • observes
    • configuration
  • Flows
    • @TODO
  • Fields
    • @TODO
  • Entries
    • @TODO

About

A terraform provider for Moltin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published