Skip to content

Commit 70d15bb

Browse files
committed
fix documentation
1 parent 75e2198 commit 70d15bb

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ terraform {
1717
required_providers {
1818
bitwarden = {
1919
source = "maxlaverse/bitwarden"
20-
version = ">= 0.6.2"
20+
version = ">= 0.6.1"
2121
}
2222
}
2323
}
2424
2525
# Configure the Bitwarden Provider
2626
provider "bitwarden" {
27-
email = "terraform@example.com"
27+
email = "terraform@example.com"
2828
}
2929
3030
# Create a Bitwarden Login Resource
3131
resource "bitwarden_item_login" "example" {
32-
name = "Example"
33-
username = "service-account"
34-
password = "<sensitive>"
32+
name = "Example"
33+
username = "service-account"
34+
password = "<sensitive>"
3535
}
3636
```
3737

@@ -61,7 +61,7 @@ When doing so, it's your responsibility to:
6161
* revoke it when you don't need it anymore
6262

6363
You can generate a Session Key by running the following command in your Terraform Workspace:
64-
```
64+
```console
6565
BITWARDENCLI_APPDATA_DIR=.bitwarden bw login
6666

6767
# or if you use a custom vault path
@@ -74,7 +74,7 @@ Configuration for the Bitwarden Provider can be derived from two sources:
7474
* Environment variables
7575

7676
### Parameters
77-
Credentials can be provided by adding a `master_password` and optionally `client_id` and `client_secret` to the bitwarden provider block.
77+
Credentials can be provided by adding a combination of `email`, `master_password`, `client_id`, `client_secret` or `session_key` to the bitwarden provider block.
7878
```terraform
7979
provider "bitwarden" {
8080
email = "terraform@example.com"
@@ -85,7 +85,7 @@ provider "bitwarden" {
8585
```
8686

8787
### Environment variables
88-
Credentials can be provided by using the `BW_PASSWORD` and optionally `BW_CLIENTID` and `BW_CLIENTSECRET` environment variables.
88+
Credentials can be provided by using a combination of `BW_EMAIL`, `BW_PASSWORD`, `BW_CLIENTID`, `BW_CLIENTSECRET` or `BW_SESSION` environment variables.
8989

9090
For example:
9191
```bitwarden

examples/quick/provider.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ terraform {
99

1010
# Configure the Bitwarden Provider
1111
provider "bitwarden" {
12-
email = "terraform@example.com"
12+
email = "terraform@example.com"
1313
}
1414

1515
# Create a Bitwarden Login Resource
1616
resource "bitwarden_item_login" "example" {
17-
name = "Example"
18-
username = "service-account"
19-
password = "<sensitive>"
17+
name = "Example"
18+
username = "service-account"
19+
password = "<sensitive>"
2020
}

templates/index.md.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ When doing so, it's your responsibility to:
4040
* revoke it when you don't need it anymore
4141

4242
You can generate a Session Key by running the following command in your Terraform Workspace:
43-
```
43+
```console
4444
BITWARDENCLI_APPDATA_DIR=.bitwarden bw login
4545

4646
# or if you use a custom vault path
@@ -53,7 +53,7 @@ Configuration for the Bitwarden Provider can be derived from two sources:
5353
* Environment variables
5454

5555
### Parameters
56-
Credentials can be provided by adding a `master_password` and optionally `client_id` and `client_secret` to the bitwarden provider block.
56+
Credentials can be provided by adding a combination of `email`, `master_password`, `client_id`, `client_secret` or `session_key` to the bitwarden provider block.
5757
```terraform
5858
provider "bitwarden" {
5959
email = "terraform@example.com"
@@ -64,7 +64,7 @@ provider "bitwarden" {
6464
```
6565

6666
### Environment variables
67-
Credentials can be provided by using the `BW_PASSWORD` and optionally `BW_CLIENTID` and `BW_CLIENTSECRET` environment variables.
67+
Credentials can be provided by using a combination of `BW_EMAIL`, `BW_PASSWORD`, `BW_CLIENTID`, `BW_CLIENTSECRET` or `BW_SESSION` environment variables.
6868

6969
For example:
7070
```bitwarden

0 commit comments

Comments
 (0)