Skip to content

Commit

Permalink
documentation updates (#10)
Browse files Browse the repository at this point in the history
* documentation updates

* updated api keys url
  • Loading branch information
vasiliyskysql authored Jul 12, 2024
1 parent 2aba706 commit 7312cda
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ on darwin_arm64

## Create a new SkySQL service

1. Go to MariaDB ID: [https://id.mariadb.com/account/api/](https://id.mariadb.com/account/api/) and generate an API key
1. Go to User API Keys Page: [https://app.skysql.com/user-profile/api-keys](https://app.skysql.com/user-profile/api-keys) and generate an API key

2. Set environment variables:

Expand Down Expand Up @@ -351,7 +351,7 @@ which are applied in the following order:
configuration and risks secret leakage should this file ever be committed to a
public version control system.

Credentials can be provided by adding an `access_token` to the provider configuration block.
Credentials can be provided by adding an `api_key` to the provider configuration block.

Usage:

Expand Down
5 changes: 3 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ package provider
import (
"context"
"errors"
"github.com/matryer/resync"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql"
"os"

"github.com/matryer/resync"

"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/provider"
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql"
)

// Ensure skySQLProvider satisfies various provider interfaces.
Expand Down
12 changes: 7 additions & 5 deletions internal/skysql/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ package skysql
import (
"context"
"errors"
"github.com/go-resty/resty/v2"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/autonomous"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/organization"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/provisioning"
"net/http"
"net/url"
"os"
"path/filepath"
"strconv"
"time"

"github.com/go-resty/resty/v2"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"

"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/autonomous"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/organization"
"github.com/skysqlinc/terraform-provider-skysql/internal/skysql/provisioning"
)

type Client struct {
Expand Down
4 changes: 2 additions & 2 deletions templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ on darwin_arm64

## Create a new SkySQL service

1. Go to MariaDB ID: [https://id.mariadb.com/account/api/](https://id.mariadb.com/account/api/) and generate an API key
1. Go to User API Keys Page: [https://app.skysql.com/user-profile/api-keys](https://app.skysql.com/user-profile/api-keys) and generate an API key

2. Set environment variables:

Expand Down Expand Up @@ -280,7 +280,7 @@ which are applied in the following order:
configuration and risks secret leakage should this file ever be committed to a
public version control system.

Credentials can be provided by adding an `access_token` to the provider configuration block.
Credentials can be provided by adding an `api_key` to the provider configuration block.

Usage:

Expand Down

0 comments on commit 7312cda

Please sign in to comment.