Skip to content

Commit 1de09c7

Browse files
chore(provider): add section about new profile feature usage
1 parent 02f0e5a commit 1de09c7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/index.md

+27
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,33 @@ If it fails to detect credentials inline, or in the environment, Terraform will
178178
You can optionally specify a different location with `SCW_CONFIG_PATH` environment variable.
179179
You can find more information about this configuration [in the documentation](https://github.com/scaleway/scaleway-sdk-go/blob/master/scw/README.md#scaleway-config).
180180

181+
This method also supports a `profile` configuration:
182+
183+
Example:
184+
185+
If your shared configuration file contains:
186+
187+
```yaml
188+
profiles:
189+
myProfile:
190+
access_key: xxxxxxxxxxxxxxxxxxxx
191+
secret_key: xxxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx
192+
default_organization_id: xxxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx
193+
default_project_id: xxxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxxx
194+
default_zone: fr-par-1
195+
default_region: fr-par
196+
api_url: https://api.scaleway.com
197+
insecure: false
198+
```
199+
200+
You can invoke and use this profile in the provider declaration:
201+
202+
```hcl
203+
provider "scaleway" {
204+
profile = "myProfile"
205+
}
206+
```
207+
181208
## Arguments Reference
182209

183210
In addition to [generic provider arguments](https://www.terraform.io/docs/configuration/providers.html) (e.g. `alias` and `version`), the following arguments are supported in the Scaleway provider block:

0 commit comments

Comments
 (0)