Skip to content

Commit

Permalink
feat(resource/xelon_ssh_key): migrate ssh key resource to framework
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-github committed Nov 24, 2024
1 parent 1486d30 commit a5ff4ce
Show file tree
Hide file tree
Showing 9 changed files with 568 additions and 355 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ provider "xelon" {

### Optional

- `base_url` (String) The base URL endpoint for Xelon HQ. Default is `https://hq.xelon.ch/api/service/`. Alternatively, can be configured using the `XELON_BASE_URL` environment variable.
- `base_url` (String) The base URL endpoint for Xelon HQ. Default is `https://hq.xelon.ch/api/v2/`. Alternatively, can be configured using the `XELON_BASE_URL` environment variable.
- `client_id` (String) The client ID for IP ranges. Alternatively, can be configured using the `XELON_CLIENT_ID` environment variable.
- `token` (String) The Xelon access token. Alternatively, can be configured using the `XELON_TOKEN` environment variable.
11 changes: 5 additions & 6 deletions docs/resources/ssh_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "xelon_ssh_key Resource - terraform-provider-xelon"
subcategory: ""
description: |-
Xelon resource to allow you to manage SSH keys
The SSH key resource allows you to manage Xelon SSH keys.
---

# xelon_ssh_key (Resource)

Xelon resource to allow you to manage SSH keys
The SSH key resource allows you to manage Xelon SSH keys.

## Example Usage

Expand All @@ -24,10 +24,9 @@ resource "xelon_ssh_key" "admin" {

### Required

- `name` (String) The name of the SSH key
- `public_key` (String) The text of the public key
- `name` (String) The SSH key name.
- `public_key` (String) The public SSH key material.

### Read-Only

- `fingerprint` (String) The fingerprint of the SSH key
- `id` (String) The ID of this resource.
- `id` (String) The ID of the SSH key.
49 changes: 25 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
module github.com/Xelon-AG/terraform-provider-xelon

go 1.22
go 1.23

toolchain go1.22.5
toolchain go1.23.3

require (
github.com/Xelon-AG/xelon-sdk-go v0.14.1
github.com/hashicorp/terraform-plugin-framework v1.10.0
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
github.com/hashicorp/terraform-plugin-go v0.23.0
github.com/Xelon-AG/xelon-sdk-go v0.15.2-0.20241124144649-c71f15f4c7bf
github.com/hashicorp/terraform-plugin-framework v1.13.0
github.com/hashicorp/terraform-plugin-framework-validators v0.15.0
github.com/hashicorp/terraform-plugin-go v0.25.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-mux v0.16.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/hashicorp/terraform-plugin-testing v1.9.0
github.com/stretchr/testify v1.9.0
github.com/hashicorp/terraform-plugin-mux v0.17.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
github.com/hashicorp/terraform-plugin-testing v1.11.0
github.com/stretchr/testify v1.10.0
)

require (
Expand All @@ -32,14 +32,15 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.6.0 // indirect
github.com/hashicorp/go-plugin v1.6.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.7 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/hc-install v0.7.0 // indirect
github.com/hashicorp/hcl/v2 v2.21.0 // indirect
github.com/hashicorp/hc-install v0.9.0 // indirect
github.com/hashicorp/hcl/v2 v2.23.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.21.0 // indirect
github.com/hashicorp/terraform-json v0.22.1 // indirect
github.com/hashicorp/terraform-json v0.23.0 // indirect
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
Expand All @@ -55,17 +56,17 @@ require (
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.14.4 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
github.com/zclconf/go-cty v1.15.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/grpc v1.63.2 // indirect
google.golang.org/protobuf v1.34.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit a5ff4ce

Please sign in to comment.