Skip to content

Commit

Permalink
Docs: API AWS Secrets Formatting (#16797)
Browse files Browse the repository at this point in the history
* Docs: API AWS Secrets Formatting

* trigger ci

Co-authored-by: HridoyRoy <[email protected]>
  • Loading branch information
aphorise and HridoyRoy authored Aug 25, 2022
1 parent 9f62630 commit a21e80f
Showing 1 changed file with 40 additions and 34 deletions.
74 changes: 40 additions & 34 deletions website/content/api-docs/secret/aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -355,45 +355,51 @@ Using tags:
<Tabs>
<Tab heading="cURL">

```json
{
"credential_type": "iam_user",
"iam_tags": [
"first_key=first_value",
"second_key=second_value"
]
}
```
or
```json
{
"credential_type": "iam_user",
"iam_tags": {
"first_key": "first_value",
"second_key": "second_value"
}
```json
{
"credential_type": "iam_user",
"iam_tags": [
"first_key=first_value",
"second_key=second_value"
]
}
```

or

```json
{
"credential_type": "iam_user",
"iam_tags": {
"first_key": "first_value",
"second_key": "second_value"
}
```
}
```

</Tab>
<Tab heading="CLI">

```bash
vault write aws/roles/example-role \
credential_type=iam_user \
iam_tags="first_key=first_value" \
iam_tags="second_key=second_value" \
```
or
```bash
vault write aws/roles/example-role \
credential_type=iam_user \
iam_tags=@test.json
```
where test.json is
```json
["tag1=42", "tag2=something"]
```
```bash
vault write aws/roles/example-role \
credential_type=iam_user \
iam_tags="first_key=first_value" \
iam_tags="second_key=second_value" \
```

or

```bash
vault write aws/roles/example-role \
credential_type=iam_user \
[email protected]
```

where `test.json` is:

```json
["tag1=42", "tag2=something"]
```

</Tab>
</Tabs>
Expand Down

0 comments on commit a21e80f

Please sign in to comment.