labd / terraform-provider-commercetools

Terraform provider for commercetools
https://registry.terraform.io/providers/labd/commercetools/latest/docs
Mozilla Public License 2.0
64 stars 68 forks source link

Wanted to quickly check if there is resource for importing products with Commercetools Terraform or any plans of introducing that. #458

Open tabsheerabdullla opened 8 months ago

tabsheerabdullla commented 8 months ago

Currently it gives the below error

image

Expecting the this would be introduced soon and also there will be a provision to give a csv/xls file for products alone as this can be a big file

demeyerthom commented 7 months ago

Hi @tabsheerabdullla apologies for the late reply.

To answer your question: we don't support this resource indeed. It has a low priority for us, as we generally don't set products in configuration for our own customers because these tend to change too much over time.

I am however not opposed to it so if you have the time feel free to shoot in a PR with the resource added. There is a PR open in the repo someone else has been working on, if you need some inspiration.

I don't think we will ever add an import from file, as this veers quickly into something terraform providers are not really made to do. However Commercetools Impex does support this exact feature, so I would check it out there