From 21b3a6e58787aae54938b772e3e66f1c14e86766 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 19 Jun 2023 13:04:25 +0200 Subject: Terraform registry documentation bootstrap --- examples/data-sources/eventline_projects/data-source.tf | 2 ++ examples/data-sources/projects/data-source.tf | 2 -- examples/provider/provider.tf | 10 +++++++++- examples/resources/eventline_project/import.sh | 1 + examples/resources/eventline_project/resource.tf | 3 +++ examples/resources/project/import.sh | 1 - examples/resources/project/resource.tf | 3 --- 7 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 examples/data-sources/eventline_projects/data-source.tf delete mode 100644 examples/data-sources/projects/data-source.tf create mode 100644 examples/resources/eventline_project/import.sh create mode 100644 examples/resources/eventline_project/resource.tf delete mode 100644 examples/resources/project/import.sh delete mode 100644 examples/resources/project/resource.tf (limited to 'examples') diff --git a/examples/data-sources/eventline_projects/data-source.tf b/examples/data-sources/eventline_projects/data-source.tf new file mode 100644 index 0000000..f68d2cc --- /dev/null +++ b/examples/data-sources/eventline_projects/data-source.tf @@ -0,0 +1,2 @@ +data "projects" "example" { +} diff --git a/examples/data-sources/projects/data-source.tf b/examples/data-sources/projects/data-source.tf deleted file mode 100644 index f68d2cc..0000000 --- a/examples/data-sources/projects/data-source.tf +++ /dev/null @@ -1,2 +0,0 @@ -data "projects" "example" { -} diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 699cdb4..b562140 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -1,4 +1,12 @@ +terraform { + required_providers { + eventline = { + source = "adyxax/eventline" + } + } +} + provider "eventline" { - api_key = "12345678-9abc-def0-1234-56789abcdef0" + api_key = var.eventline_api_key endpoint = "http://localhost:8085/" } diff --git a/examples/resources/eventline_project/import.sh b/examples/resources/eventline_project/import.sh new file mode 100644 index 0000000..c6bc21c --- /dev/null +++ b/examples/resources/eventline_project/import.sh @@ -0,0 +1 @@ +terraform import eventline_project.test 0123456789ABCDEFGHIJKLMNOPQ diff --git a/examples/resources/eventline_project/resource.tf b/examples/resources/eventline_project/resource.tf new file mode 100644 index 0000000..e39b50f --- /dev/null +++ b/examples/resources/eventline_project/resource.tf @@ -0,0 +1,3 @@ +resource "project" "example" { + name = "example" +} diff --git a/examples/resources/project/import.sh b/examples/resources/project/import.sh deleted file mode 100644 index c6bc21c..0000000 --- a/examples/resources/project/import.sh +++ /dev/null @@ -1 +0,0 @@ -terraform import eventline_project.test 0123456789ABCDEFGHIJKLMNOPQ diff --git a/examples/resources/project/resource.tf b/examples/resources/project/resource.tf deleted file mode 100644 index e39b50f..0000000 --- a/examples/resources/project/resource.tf +++ /dev/null @@ -1,3 +0,0 @@ -resource "project" "example" { - name = "example" -} -- cgit v1.2.3