diff --git a/internal/resource/pr_automation_trigger.go b/internal/resource/pr_automation_trigger.go index ff25ddb..15b914d 100644 --- a/internal/resource/pr_automation_trigger.go +++ b/internal/resource/pr_automation_trigger.go @@ -122,7 +122,7 @@ func (in *prAutomationTriggerResource) Update(ctx context.Context, req resource. return } - if !data.RetriggerKey.Equal(state.RetriggerKey) { + if !data.RetriggerKey.Equal(state.RetriggerKey) || !data.PrAutomationID.Equal(state.PrAutomationID) { _, err := in.client.CreatePullRequest( ctx, data.PrAutomationID.ValueString(), diff --git a/internal/resource/stack_run_trigger.go b/internal/resource/stack_run_trigger.go index 7b3cdf3..7dbbdbe 100644 --- a/internal/resource/stack_run_trigger.go +++ b/internal/resource/stack_run_trigger.go @@ -99,7 +99,7 @@ func (in *stackRunTriggerResource) Update(ctx context.Context, req resource.Upda return } - if !data.RetriggerKey.Equal(state.RetriggerKey) { + if !data.RetriggerKey.Equal(state.RetriggerKey) || !data.ID.Equal(state.ID) { _, err := in.client.TriggerRun( ctx, data.ID.ValueString(),