Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.35 KB

commercetools.md

File metadata and controls

53 lines (43 loc) · 1.35 KB

Use with Commercetools

This provider use the terraform-provider-commercetools. The terraformer provider was build by Dustin Deus.

Example:

Export required variables:

export CTP_PROJECT_KEY=key
export CTP_CLIENT_ID=foo
export CTP_CLIENT_SECRET=bar
export CTP_CLIENT_SCOPE=scope

Export optional variables in case default values are not appropriate:

export CTP_BASE_URL=base_url # default: https://api.sphere.io
export CTP_TOKEN_URL=token_url # default: https://auth.sphere.io

Run terraformer

./terraformer plan commercetools -r=types # Only planning
./terraformer import commercetools -r=types # Import commercetools types

List of supported commercetools resources:

  • api_extension
    • commercetools_api_extension
  • channel
    • commercetools_channel
  • custom_object
    • commercetools_custom_object
  • product_type
    • commercetools_product_type
  • shipping_method
    • commercetools_shipping_method
  • shipping_zone
    • commercetools_shipping_zone
  • state
    • commercetools_state
  • store
    • commercetools_store
  • subscription
    • commercetools_subscription
  • tax_category
    • commercetools_tax_category
  • types
    • commercetools_type