Skip to content

Commit

Permalink
feat(acme): implement account import
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Brauer <zaubernerd@zaubernerd.de>
  • Loading branch information
ZauberNerd committed Jul 26, 2024
1 parent bb484f1 commit 58b3ffb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
# ACME accounts can be imported using their name, e.g.:
terraform import proxmox_virtual_environment_acme_account.example example
2 changes: 2 additions & 0 deletions fwprovider/acme/resource_acme_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down Expand Up @@ -247,4 +248,5 @@ func (r *acmeAccountResource) ImportState(
req resource.ImportStateRequest,
resp *resource.ImportStateResponse,
) {
resource.ImportStatePassthroughID(ctx, path.Root("name"), req, resp)
}

0 comments on commit 58b3ffb

Please sign in to comment.