Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit d34e31b

Browse files
author
Alex Kalyvitis
committed
Add action example
1 parent 947de9f commit d34e31b

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

example/action/main.tf

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,47 @@
11
terraform {
22
required_providers {
33
auth0 = {
4-
source = "alexkappa/auth0"
5-
version = "0.24.1"
4+
source = "alexkappa/auth0"
5+
version = "0.24.3"
66
}
77
}
88
}
99

1010
provider "auth0" {}
1111

1212
resource "auth0_action" "do" {
13-
name = "Test Action ${timestamp()}"
14-
supported_triggers {
15-
id = "post-login"
16-
version = "v2"
17-
}
18-
code = <<-EOT
13+
14+
name = "Test Action ${timestamp()}"
15+
16+
supported_triggers {
17+
id = "post-login"
18+
version = "v2"
19+
}
20+
21+
runtime = "node16"
22+
code = <<-EOT
1923
exports.onContinuePostLogin = async (event, api) => {
2024
console.log(event)
2125
};"
2226
EOT
23-
deploy = true
24-
}
27+
28+
dependencies {
29+
name = "lodash"
30+
version = "latest"
31+
}
32+
dependencies {
33+
name = "request"
34+
version = "latest"
35+
}
36+
37+
secrets {
38+
name = "FOO"
39+
value = "Foo"
40+
}
41+
secrets {
42+
name = "BAR"
43+
value = "Bar"
44+
}
45+
46+
deploy = true
47+
}

0 commit comments

Comments
 (0)