Skip to content

Commit

Permalink
fix: replace secret store on id change
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjenek committed Oct 25, 2024
1 parent 7d080f1 commit 6235681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/provider/resource_secret_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/humanitec/humanitec-go-autogen"
"github.com/humanitec/humanitec-go-autogen/client"
Expand Down Expand Up @@ -92,6 +94,9 @@ func (*SecretStore) Schema(ctx context.Context, req resource.SchemaRequest, resp
"id": schema.StringAttribute{
MarkdownDescription: "The ID of the Secret Store.",
Required: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
},
"primary": schema.BoolAttribute{
MarkdownDescription: "Whether the Secret Store is the Primary one for the organization.",
Expand Down

0 comments on commit 6235681

Please sign in to comment.