-
Notifications
You must be signed in to change notification settings - Fork 43
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
Showing
20 changed files
with
372 additions
and
101 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
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,59 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "juju_secret Resource - terraform-provider-juju" | ||
subcategory: "" | ||
description: |- | ||
A resource that represents a Juju secret. | ||
--- | ||
|
||
# juju_secret (Resource) | ||
|
||
A resource that represents a Juju secret. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "juju_secret" "this" { | ||
model = juju_model.development.name | ||
name = "this_secret_name" | ||
value = { | ||
key1 = "value1" | ||
key2 = "value2" | ||
} | ||
info = "This is the secret" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `model` (String) The model in which the secret belongs. | ||
- `value` (Map of String, Sensitive) The value map of the secret. There can be more than one key-value pair. | ||
|
||
### Optional | ||
|
||
- `info` (String) The description of the secret. | ||
- `name` (String) The name of the secret. | ||
|
||
### Read-Only | ||
|
||
- `secret_id` (String) The ID of the secret. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Secrets can be imported by using the URI as in the juju show-secrets output. | ||
# Example: | ||
# $juju show-secret secret-name | ||
# coh2uo2ji6m0ue9a7tj0: | ||
# revision: 1 | ||
# owner: <model> | ||
# name: secret-name | ||
# created: 2024-04-19T08:46:25Z | ||
# updated: 2024-04-19T08:46:25Z | ||
$ terraform import juju_secret.secret-name coh2uo2ji6m0ue9a7tj0 | ||
``` |
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,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "juju_secret_access Resource - terraform-provider-juju" | ||
subcategory: "" | ||
description: |- | ||
A resource that represents a Juju secret access. | ||
--- | ||
|
||
# juju_secret_access (Resource) | ||
|
||
A resource that represents a Juju secret access. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "juju_secret_access" "this" { | ||
model = juju_model.development.name | ||
applications = [ | ||
juju_application.app.name, juju_application.app2.name | ||
] | ||
secret_id = juju_secret.that.secret_id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `applications` (List of String) The list of applications to which the secret is granted or revoked. | ||
- `model` (String) The model in which the secret belongs. | ||
- `secret_id` (String) The ID of the secret. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Secret access can be imported by using the URI as in the juju show-secrets output. | ||
# Example: | ||
# $juju show-secret secret-name | ||
# coh2uo2ji6m0ue9a7tj0: | ||
# revision: 1 | ||
# owner: <model> | ||
# name: secret-name | ||
# created: 2024-04-19T08:46:25Z | ||
# updated: 2024-04-19T08:46:25Z | ||
$ terraform import juju_secret_access.secret-access-name coh2uo2ji6m0ue9a7tj0 | ||
``` |
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 @@ | ||
# Secrets can be imported by using the URI as in the juju show-secrets output. | ||
# Example: | ||
# $juju show-secret secret-name | ||
# coh2uo2ji6m0ue9a7tj0: | ||
# revision: 1 | ||
# owner: <model> | ||
# name: secret-name | ||
# created: 2024-04-19T08:46:25Z | ||
# updated: 2024-04-19T08:46:25Z | ||
$ terraform import juju_secret.secret-name coh2uo2ji6m0ue9a7tj0 |
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,9 @@ | ||
resource "juju_secret" "this" { | ||
model = juju_model.development.name | ||
name = "this_secret_name" | ||
value = { | ||
key1 = "value1" | ||
key2 = "value2" | ||
} | ||
info = "This is the secret" | ||
} |
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 @@ | ||
# Secret access can be imported by using the URI as in the juju show-secrets output. | ||
# Example: | ||
# $juju show-secret secret-name | ||
# coh2uo2ji6m0ue9a7tj0: | ||
# revision: 1 | ||
# owner: <model> | ||
# name: secret-name | ||
# created: 2024-04-19T08:46:25Z | ||
# updated: 2024-04-19T08:46:25Z | ||
$ terraform import juju_secret_access.secret-access-name coh2uo2ji6m0ue9a7tj0 |
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,7 @@ | ||
resource "juju_secret_access" "this" { | ||
model = juju_model.development.name | ||
applications = [ | ||
juju_application.app.name, juju_application.app2.name | ||
] | ||
secret_id = juju_secret.that.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
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
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.