labd / terraform-provider-commercetools

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

Update existing project via "commercetools_project_settings" is possible ? #446

Closed nboire closed 11 months ago

nboire commented 11 months ago

Hello, Is it possible to update an existing project if it was not create by this terraform ressource ? Thanks,

demeyerthom commented 11 months ago

Hi @nboire Yeah, that should not be a problem. The project resource does not actually create a project, but only updates it to the state as expressed in the terraform configuration. So if you add a project resource to your terraform code your commercetools project will be updated to reflect those settings.

I can suggest that you run a plan first to see what the new project resource will change if this is an existing environment in production, as there are some impactful settings that might change you might want to be aware of!