summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJulien Dessaux2023-09-24 01:23:50 +0200
committerJulien Dessaux2023-09-24 01:23:50 +0200
commit4f77442eff59061ac5ab9f710fdb6fe998fedb5f (patch)
tree79fc8205bdbcebd9c805ed5c4a229affa0b3fdff /examples
parentUpdated dependencies (diff)
downloadterraform-provider-eventline-4f77442eff59061ac5ab9f710fdb6fe998fedb5f.tar.gz
terraform-provider-eventline-4f77442eff59061ac5ab9f710fdb6fe998fedb5f.tar.bz2
terraform-provider-eventline-4f77442eff59061ac5ab9f710fdb6fe998fedb5f.zip
Add identity resource
Diffstat (limited to 'examples')
-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"
+}