-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdf0188
commit 105439a
Showing
46 changed files
with
1,679 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "bitwarden_project Data Source - terraform-provider-bitwarden" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get information on an existing project. | ||
--- | ||
|
||
# bitwarden_project (Data Source) | ||
|
||
Use this data source to get information on an existing project. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "bitwarden_project" "example" { | ||
id = "37a66d6a-96c1-4f04-9a3c-b1fc0135669e" | ||
} | ||
resource "bitwarden_secret" "example" { | ||
project_id = data.bitwarden_project.example.id | ||
key = "ACCESS_KEY" | ||
value = "THIS-VALUE" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `id` (String) Identifier. | ||
- `organization_id` (String) Identifier of the organization. | ||
|
||
### Read-Only | ||
|
||
- `name` (String) Name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "bitwarden_secret Data Source - terraform-provider-bitwarden" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get information on an existing secret. | ||
--- | ||
|
||
# bitwarden_secret (Data Source) | ||
|
||
Use this data source to get information on an existing secret. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "bitwarden_secret" "example" { | ||
id = "37a66d6a-96c1-4f04-9a3c-b1fc0135669e" | ||
} | ||
resource "kubernetes_secret" "vpn_credentials" { | ||
metadata { | ||
name = "vpn-key" | ||
} | ||
data = { | ||
"PASSWORD" = data.bitwarden_secret.value | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `id` (String) Identifier. | ||
- `organization_id` (String) Identifier of the organization. | ||
|
||
### Read-Only | ||
|
||
- `key` (String) Name. | ||
- `note` (String) Note. | ||
- `project_id` (String) Identifier of the project. | ||
- `value` (String) Value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "bitwarden_secret Resource - terraform-provider-bitwarden" | ||
subcategory: "" | ||
description: |- | ||
Manages a secret. | ||
--- | ||
|
||
# bitwarden_secret (Resource) | ||
|
||
Manages a secret. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "bitwarden_secret" "example" { | ||
key = "DB_ACCESS_KEY_ID" | ||
value = "2oOXi4GXtJ3JAkhgBmmBuA==" | ||
project_id = "59f5d6eb-1f17-4ebb-a6c2-b1fc01355b15" | ||
note = "This is the main account" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `key` (String) Name. | ||
- `note` (String) Note. | ||
- `project_id` (String) Identifier of the project. | ||
- `value` (String) Value. | ||
|
||
### Optional | ||
|
||
- `id` (String) Identifier. | ||
- `organization_id` (String) Identifier of the organization. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
$ terraform import bitwarden_secret.example <secret_id> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
data "bitwarden_project" "example" { | ||
id = "37a66d6a-96c1-4f04-9a3c-b1fc0135669e" | ||
} | ||
|
||
resource "bitwarden_secret" "example" { | ||
project_id = data.bitwarden_project.example.id | ||
|
||
key = "ACCESS_KEY" | ||
value = "THIS-VALUE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
data "bitwarden_secret" "example" { | ||
id = "37a66d6a-96c1-4f04-9a3c-b1fc0135669e" | ||
} | ||
|
||
resource "kubernetes_secret" "vpn_credentials" { | ||
metadata { | ||
name = "vpn-key" | ||
} | ||
|
||
data = { | ||
"PASSWORD" = data.bitwarden_secret.value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$ terraform import bitwarden_secret.example <secret_id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "bitwarden_secret" "example" { | ||
key = "DB_ACCESS_KEY_ID" | ||
value = "2oOXi4GXtJ3JAkhgBmmBuA==" | ||
project_id = "59f5d6eb-1f17-4ebb-a6c2-b1fc01355b15" | ||
note = "This is the main account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.