You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/container_trigger.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ For more information see [the documentation](https://www.scaleway.com/en/develop
10
10
11
11
## Examples
12
12
13
-
### Basic
13
+
### SQS
14
14
15
15
```hcl
16
16
resource scaleway_container_trigger main {
@@ -25,6 +25,21 @@ resource scaleway_container_trigger main {
25
25
}
26
26
```
27
27
28
+
### Nats
29
+
30
+
```hcl
31
+
resource scaleway_container_trigger main {
32
+
container_id = scaleway_container.main.id
33
+
name = "my-trigger"
34
+
nats {
35
+
account_id = scaleway_mnq_nats_account.main.id
36
+
subject = "MySubject"
37
+
# If region is different
38
+
region = scaleway_mnq_nats_account.main.region
39
+
}
40
+
}
41
+
```
42
+
28
43
## Arguments Reference
29
44
30
45
The following arguments are supported:
@@ -38,8 +53,14 @@ The following arguments are supported:
38
53
-`sqs` The configuration of the Scaleway's SQS used by the trigger
39
54
-`namespace_id` (Optional) ID of the mnq namespace. Deprecated.
40
55
-`queue` (Required) Name of the queue
41
-
-`project_id` (Optional) ID of the project that contain the mnq namespace, defaults to provider's project
42
-
-`region` (Optional) Region where the mnq namespace is, defaults to provider's region
56
+
-`project_id` (Optional) ID of the project where sqs is enabled, defaults to provider's project
57
+
-`region` (Optional) Region where sqs is enabled, defaults to provider's region
58
+
59
+
-`nats` The configuration for the Scaleway's Nats used by the trigger
60
+
-`account_id` (Required) ID of the mnq nats account.
61
+
-`subject` (Required) The subject to listen to
62
+
-`project_id` (Optional) ID of the project that contain the mnq nats account, defaults to provider's project
63
+
-`region` (Optional) Region where the mnq nats account is, defaults to provider's region
43
64
44
65
-`region` - (Defaults to [provider](../index.md#region)`region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created.
Copy file name to clipboardExpand all lines: docs/resources/function_trigger.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ For more information see [the documentation](https://www.scaleway.com/en/develop
10
10
11
11
## Examples
12
12
13
-
### Basic
13
+
### SQS
14
14
15
15
```hcl
16
16
resource scaleway_function_trigger main {
@@ -25,6 +25,21 @@ resource scaleway_function_trigger main {
25
25
}
26
26
```
27
27
28
+
### Nats
29
+
30
+
```hcl
31
+
resource scaleway_function_trigger main {
32
+
container_id = scaleway_container.main.id
33
+
name = "my-trigger"
34
+
nats {
35
+
account_id = scaleway_mnq_nats_account.main.id
36
+
subject = "MySubject"
37
+
# If region is different
38
+
region = scaleway_mnq_nats_account.main.region
39
+
}
40
+
}
41
+
```
42
+
28
43
## Arguments Reference
29
44
30
45
The following arguments are supported:
@@ -41,6 +56,13 @@ The following arguments are supported:
41
56
-`project_id` (Optional) ID of the project that contain the mnq namespace, defaults to provider's project
42
57
-`region` (Optional) Region where the mnq namespace is, defaults to provider's region
43
58
59
+
-`nats` The configuration for the Scaleway's Nats used by the trigger
60
+
-`account_id` (Required) ID of the mnq nats account.
61
+
-`subject` (Required) The subject to listen to
62
+
-`project_id` (Optional) ID of the project that contain the mnq nats account, defaults to provider's project
63
+
-`region` (Optional) Region where the mnq nats account is, defaults to provider's region
64
+
65
+
44
66
-`region` - (Defaults to [provider](../index.md#region)`region`). The [region](../guides/regions_and_zones.md#regions) in which the namespace should be created.
0 commit comments