Modify Deployment using Terraform

Hi everyone,
I have a question or more like if it is possible to achieve using Terraform.

So, I deployed an Elasticsearch Instance in Azure using Terraform.
After this deployment is done, I have an instance of Elasticsearch in Azure that is pointing to Elasticsearch Cloud.
Terraform has both these providers and I can deploy in Azure and in Elastic Cloud an individual instance of Elastic.

My issue is: the configuration that is needed to be done in Elasticsearch to be Productive can be done only by Elastic Cloud (EC provider), but I must deploy using Azure Provider.

Now what I want to achieve is:

  1. Deploy using Azure as provider
  2. Modify using EC as provider

Is this achievable using Terraform ?