terraform-provider-square

command module
v0.0.0-...-e4c3402 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 3 Imported by: 0

README

A Terraform provider for the Square Connect V2 API (squareup.com)

terraform-provider-square

Manage your Square POS catalog using Terraform:

terraform {
  required_providers {
    square = {
      version = "0.0.1"
      source  = "jefflinse.io/com/square"
    }
  }
}

provider "square" {}

resource "square_catalog_category" "apparel" {
  name = "Apparel"
}

resource "square_catalog_item" "tshirt" {
  name = "T-shirt"
  description = "Our regular t-shirt"
  category_id = square_catalog_category.apparel.id
}

resource "square_catalog_item_variation" "xl" {
  name = "Extra Large (XL)"
  price = 3500
  item_id = square_catalog_item.tshirt.id
}

To run locally:

  1. Clone this repo
  2. Run make to build and install the provider
  3. Set SQUARE_API_ACCESS_TOKEN in your environment to your Square sandbox OAUTH access token.
  4. Copy the example above into a Terraform configuration file
  5. Run terraform init
  6. Run terraform apply to create the example resources

Project Status

This projects is very much in its infancy. The feature set is limited to my own original needs, but I am actively developing this provider. Contributions are absolutely welcomed.

Supported Resources:

  • CatalogCategory
  • CatalogDiscount
  • CatalogItemVariation
  • CatalogItem
  • CatalogTax

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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