summaryrefslogtreecommitdiff
path: root/examples/resources
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources')
-rw-r--r--examples/resources/eventline_identity/import.sh1
-rw-r--r--examples/resources/eventline_identity/resource.tf12
2 files changed, 13 insertions, 0 deletions
diff --git a/examples/resources/eventline_identity/import.sh b/examples/resources/eventline_identity/import.sh
new file mode 100644
index 0000000..e0efa61
--- /dev/null
+++ b/examples/resources/eventline_identity/import.sh
@@ -0,0 +1 @@
+terraform import eventline_identity.test <project_id>/<identity_id>
diff --git a/examples/resources/eventline_identity/resource.tf b/examples/resources/eventline_identity/resource.tf
new file mode 100644
index 0000000..3ed68d0
--- /dev/null
+++ b/examples/resources/eventline_identity/resource.tf
@@ -0,0 +1,12 @@
+data "eventline_project" "main" {
+ name = "main"
+}
+
+resource "eventline_identity" "example" {
+ name = "example"
+ project_id = data.project.main.id
+
+ connector = "eventline"
+ data = "{\n \"key\": \"test\"\n }"
+ type = "api_key"
+}