Reference
Appwrite
Push a penv environment into an Appwrite function's variables as secrets.
Push a penv environment into an Appwrite function's variables as secrets.
The connection
| What | This provider |
|---|---|
| Vendor | Appwrite |
| Key | appwrite-function-variable |
| Availability | available. You can connect it today. |
| Credential penv holds | appwrite-key |
| Values read back | no |
| Activation | on-next-deploy |
What it moves
| Direction | What it does |
|---|---|
export | Writes names and values from penv into the store. |
Appwrite returns no value once it holds one, so penv can write here and cannot read back.
When a written value goes live
on-next-deploy. A new value waits there and arrives with your next deploy.
What happens to a name that exists
| Direction | Policies you can pick |
|---|---|
export | create_only, overwrite, overwrite_and_prune |
How syncs work says what each one does.
How you connect
You paste a credential you already hold. penv seals it and never shows it again.
| Field | Label | Kind | Required | What it is |
|---|---|---|---|---|
apiKey | API key | secret, masked here and sealed | yes | A server API key with functions.read and functions.write. |
What the connection asks for
Fixed when you connect, and shared by every mapping on it.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
projectId | Project | text | yes | no | The project ID from your Appwrite console. |
region | Region | text | no | yes | Leave empty unless your project's API endpoint shows a region. |
What a mapping asks for
Answered once per environment you map.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
functionId | Function | text | yes | no | The function whose variables this environment maps onto. |
Permissions it needs
penv probes for these when it verifies the connection.
| Permission | Directions | Blocking | Without it |
|---|---|---|---|
functions.read | every direction | yes | Preview cannot list the function's variables. |
functions.write | export | yes | Export cannot write anything. |