Skip to content

Commit

Permalink
feat: resolved linting issues and generated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilmhdh committed Jun 17, 2024
1 parent 33f3934 commit 4d6c2d0
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 1 deletion.
53 changes: 53 additions & 0 deletions docs/data-sources/secret_tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "infisical_secret_tag Data Source - terraform-provider-infisical"
subcategory: ""
description: |-
Interact with Infisical secretTag secret tag.
---

# infisical_secret_tag (Data Source)

Interact with Infisical secretTag secret tag.

## Example Usage

```terraform
terraform {
required_providers {
infisical = {
# version = <latest version>
source = "infisical/infisical"
}
}
}
provider "infisical" {
host = "https://app.infisical.com" # Only required if using self hosted instance of Infisical, default is https://app.infisical.com
client_id = "<>"
client_secret = "<>"
}
data "infisical_secret_tag" "terraform" {
slug = "terraform"
project_id = "PROJECT_ID"
}
output "secret-tag" {
value = data.infisical_secret_tag.terraform
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `project_id` (String) The secretTag ID of the tag to fetch
- `slug` (String) The slug of the tag to fetch

### Read-Only

- `color` (String) The color of the secret tag
- `id` (String) The ID of the secret tag
- `name` (String) The name of the secret tag
11 changes: 10 additions & 1 deletion docs/resources/secret.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,21 @@ resource "infisical_secret" "smtp_secret" {
folder_path = "/mail-service"
}
resource "infisical_secret_tag" "terraform" {
name = "terraform"
slug = "terraform"
color = "#fff"
project_id = "PROJECT_ID"
}
resource "infisical_secret" "github_action_secret" {
name = "GITHUB_ACTION"
value = "<some value>"
env_slug = "dev"
workspace_id = "PROJECT_ID"
folder_path = "/"
tag_ids = [infisical_secret_tag.terraform.id]
}
```

Expand All @@ -65,7 +74,7 @@ resource "infisical_secret" "github_action_secret" {

### Optional

- `tags` (List of String) Tag slugs to be attached for the secrets.
- `tag_ids` (List of String) Tag ids to be attached for the secrets.
- `workspace_id` (String) The Infisical project ID (Required for Machine Identity auth, and service tokens with multiple scopes)

### Read-Only
Expand Down
27 changes: 27 additions & 0 deletions docs/resources/secret_tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "infisical_secret_tag Resource - terraform-provider-infisical"
subcategory: ""
description: |-
Create secret tag & save to Infisical.
---

# infisical_secret_tag (Resource)

Create secret tag & save to Infisical.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `color` (String) Color code for the tag.
- `name` (String) The name for the new tag
- `project_id` (String) The ID of the project to create tag
- `slug` (String) The slug for the new tag

### Read-Only

- `id` (String) The ID of the role

0 comments on commit 4d6c2d0

Please sign in to comment.