Skip to content

Commit c5df5e8

Browse files
SamyOubouaziznerda-codesbene2k1
authored
docs(srv): add info on trigger permissions for faas caas MTA-5533 (#4316)
* docs(srv): add info on trigger permissions for faas caas MTA-5533 * Apply suggestions from code review Co-authored-by: Néda <[email protected]> * Apply suggestions from code review Co-authored-by: Benedikt Rollik <[email protected]> --------- Co-authored-by: Néda <[email protected]> Co-authored-by: Benedikt Rollik <[email protected]>
1 parent 4b93348 commit c5df5e8

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

pages/serverless-containers/how-to/add-trigger-to-a-container.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ A trigger can be an HTTP request, a message from a queue or stream, a CRON sched
2424

2525
- A Scaleway account logged into the [console](https://console.scaleway.com)
2626
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
27-
- Created a [containers namespace](/serverless-containers/how-to/create-manage-delete-containers-namespace/)
2827
- Deployed a container from [Scaleway Container Registry](/serverless-containers/how-to/deploy-container/) or an [external registry](/serverless-containers/how-to/deploy-container/)
2928
- [Created credentials](/messaging/how-to/create-credentials/) for Scaleway Queues
3029
- [Created a queue](/messaging/how-to/create-manage-queues/)
@@ -39,6 +38,12 @@ You can create triggers on private containers, but to update the privacy of a co
3938

4039
## Queue triggers
4140

41+
<Message type="note">
42+
You must have at least the `MessagingAndQueuingReadOnly` permission in the Project containing the queue to add a queue trigger to Serverless Containers.
43+
44+
Refer to the [permissions sets documentation](/iam/reference-content/permission-sets/) for more information.
45+
</Message>
46+
4247
[Queue triggers](/serverless-containers/concepts/#queue-trigger) allow you to automatically invoke a container using events stored in a [Scaleway queue](/messaging/concepts/#queues).
4348

4449
Only queues created with the Scaleway Queues product are compatible with Serverless Containers.
@@ -61,6 +66,12 @@ When a message is pushed to the selected queues, the container will be triggered
6166

6267
## NATS triggers
6368

69+
<Message type="note">
70+
You must have at least the `MessagingAndQueuingReadOnly` permission in the Project containing the NATS account to add to a Serverless Container.
71+
72+
Refer to the [permissions sets documentation](/iam/reference-content/permission-sets/) for more information.
73+
</Message>
74+
6475
[NATS triggers](/serverless-containers/concepts/#nats-trigger) allow you to automatically invoke a container using messages sent in a [NATS](/messaging/concepts/#nats) subject.
6576

6677
[Scaleway NATS subjects](/messaging/quickstart/#quickstart-for-nats) are compatible with Serverless Containers.

pages/serverless-functions/how-to/add-trigger-to-a-function.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ You can create triggers on private functions, but to update the privacy of a fun
3939

4040
## Queue triggers
4141

42+
<Message type="note">
43+
You must have at least the `MessagingAndQueuingReadOnly` permission in the Project containing the queue to add a queue trigger to Serverless Functions.
44+
45+
Refer to the [permissions sets documentation](/iam/reference-content/permission-sets/) for more information.
46+
</Message>
47+
4248
[Queue triggers](/serverless-functions/concepts/#queue-trigger) allow you to automatically invoke a function using events stored in a [queue](/messaging/concepts/#queue).
4349

4450
Only queues created with the Scaleway Queues product are compatible with Serverless Functions.
@@ -59,6 +65,13 @@ The configuration of the queue retention may affect the behavior of the trigger.
5965

6066
## NATS triggers
6167

68+
<Message type="note">
69+
You must have at least the `MessagingAndQueuingReadOnly` permission in the Project containing the NATS account to add to Serverless Functions.
70+
71+
Refer to the [permissions sets documentation](/iam/reference-content/permission-sets/) for more information.
72+
</Message>
73+
74+
6275
[NATS triggers](/serverless-functions/concepts/#nats-trigger) allow you to automatically invoke a function using messages sent in a [NATS](/messaging/concepts/#nats) subject.
6376

6477
Scaleway [NATS subjects](/messaging/quickstart/#quickstart-for-nats) are compatible with Serverless Functions.

0 commit comments

Comments
 (0)