diff --git a/internal/client/model.go b/internal/client/model.go index 624b0ee..11512e5 100644 --- a/internal/client/model.go +++ b/internal/client/model.go @@ -1676,7 +1676,7 @@ type UpdateIntegrationRequest struct { Owner string `json:"owner,omitempty"` Environment string `json:"environment,omitempty"` Metadata map[string]interface{} `json:"metadata,omitempty"` - IsActive bool `json:"isActive"` + IsActive bool `json:"isActive,omitempty"` Region string `json:"region,omitempty"` Path string `json:"path,omitempty"` } diff --git a/internal/provider/resource/integration_aws_parameter_store.go b/internal/provider/resource/integration_aws_parameter_store.go index fa6c540..004eb7b 100644 --- a/internal/provider/resource/integration_aws_parameter_store.go +++ b/internal/provider/resource/integration_aws_parameter_store.go @@ -443,6 +443,7 @@ func (r *IntegrationAWSParameterStoreResource) Update(ctx context.Context, req r SecretPath: plan.SecretPath.ValueString(), Region: plan.AWSRegion.ValueString(), Path: plan.AWSPath.ValueString(), + IsActive: true, }) if err != nil { diff --git a/internal/provider/resource/integration_aws_secrets_manager.go b/internal/provider/resource/integration_aws_secrets_manager.go index 36fbcd8..14c42dc 100644 --- a/internal/provider/resource/integration_aws_secrets_manager.go +++ b/internal/provider/resource/integration_aws_secrets_manager.go @@ -505,7 +505,9 @@ func (r *IntegrationAWSSecretsManagerResource) Update(ctx context.Context, req r Environment: plan.Environment.ValueString(), SecretPath: plan.SecretPath.ValueString(), Region: plan.AWSRegion.ValueString(), + IsActive: true, } + if plan.MappingBehavior.ValueString() == MAPPING_BEHAVIOR_MANY_TO_ONE { updateIntegrationRequest.App = plan.AWSPath.ValueString() } diff --git a/internal/provider/resource/integration_circleci.go b/internal/provider/resource/integration_circleci.go index dae3ba2..6ebfabb 100644 --- a/internal/provider/resource/integration_circleci.go +++ b/internal/provider/resource/integration_circleci.go @@ -274,6 +274,7 @@ func (r *IntegrationCircleCIResource) Update(ctx context.Context, req resource.U App: plan.CircleCIProjectID.ValueString(), // Needs to be the project slug AppID: plan.CircleCIProjectID.ValueString(), // Needs to be the project ID Owner: plan.CircleCIOrgSlug.ValueString(), // Needs to be the organization slug + IsActive: true, }) if err != nil { diff --git a/internal/provider/resource/integration_databricks.go b/internal/provider/resource/integration_databricks.go index 767cd41..cb9cf97 100644 --- a/internal/provider/resource/integration_databricks.go +++ b/internal/provider/resource/integration_databricks.go @@ -270,6 +270,7 @@ func (r *IntegrationDatabricksResource) Update(ctx context.Context, req resource Environment: plan.Environment.ValueString(), SecretPath: plan.SecretPath.ValueString(), App: plan.DatabricksSecretScope.ValueString(), + IsActive: true, }) if err != nil {