Skip to content

Commit

Permalink
feat: Missing Inputs for BBs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelledb authored and chewbeccy committed Jul 2, 2024
1 parent 0e0b311 commit 143a9aa
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions docs/administration.building-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,23 @@ The inputs' behavior can be further decided:
shown to any users. Also meshStack only has very limited access to this secret. Only once Terraform gets executed,
the secret is decrypted.

We support different types of inputs, the basic types are STRING, NUMBER and BOOLEAN. There will be more complex types
like LIST and MAP coming as well. For now, there is an exception for the source "User Permissions". It already provides
a LIST of objects to the Building Block, with a JSON structure that looks like this:
#### Input Types

We support the following types of inputs:

- String
- Number
- Boolean
- Single Select
- File (this will place a file in the working directory of Terraform. The name of the input will be used as the filename. Usually you can use a relative path to access the provided file like ./FILENAME.)

In the future we also plan to have more complex types such as LIST and MAP as well.

#### User Permissions

On top of all the input types described above there is also a special kind of input where you receive all assigned project users & roles.
This input is called "User Permissions" and it has to be selected under "Source -> User Permissions". This can be useful to provide users with access to certain resources in a
platform. It provides a list of objects to the Building Block, with a JSON structure that looks like this:

```json
[
Expand All @@ -141,7 +155,6 @@ a LIST of objects to the Building Block, with a JSON structure that looks like t
]
```


### Building Block Outputs

You can also extract the Terraform outputs into meshStack. This is useful in two scenarios:
Expand Down

0 comments on commit 143a9aa

Please sign in to comment.