Skip to content

jefflinse/terraform-provider-square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Terraform provider for Square (squareup.com)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published