From e4886c34fff3c4b570456e8dca224e6a5d77e9cb Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Thu, 17 Feb 2022 02:45:40 +0000 Subject: [PATCH 1/4] refactor: Add minimal terraform project --- examples/minimal-project/main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/minimal-project/main.tf diff --git a/examples/minimal-project/main.tf b/examples/minimal-project/main.tf new file mode 100644 index 0000000000000..c598b2acebb6d --- /dev/null +++ b/examples/minimal-project/main.tf @@ -0,0 +1,8 @@ +terraform { + required_version = ">= 0.12.26" +} + +# The simplest possible Terraform module: it just outputs "Hello, World!" +output "hello_world" { + value = "Hello, World!" +} From 513c5e7216c100c387c9d2649356ef0a4e9960c6 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Thu, 17 Feb 2022 02:52:47 +0000 Subject: [PATCH 2/4] Add examples to the directory structure in README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 41fd90fbadc2c..995fcab277098 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ This repository contains source code for Coder V2. Additional documentation: ## Directory Structure - `.github/`: Settings for [Dependabot for updating dependencies](https://docs.github.com/en/code-security/supply-chain-security/customizing-dependency-updates) and [build/deploy pipelines with GitHub Actions](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions). - - [`semantic.yaml`](./github/semantic.yaml): Configuration for [semantic pull requests](https://github.com/apps/semantic-pull-requests) + - [`semantic.yaml`](./github/semantic.yaml): Configuration for [semantic pull requests](https://github.com/apps/semantic-pull-requests)\ +- `examples`: Example terraform project templates - `site`: Front-end UI code. ## Development From 4c620858c3185f492050073c2a58f8039d3de202 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Thu, 17 Feb 2022 02:53:08 +0000 Subject: [PATCH 3/4] Formatting --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 995fcab277098..762c8464deb89 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This repository contains source code for Coder V2. Additional documentation: - `.github/`: Settings for [Dependabot for updating dependencies](https://docs.github.com/en/code-security/supply-chain-security/customizing-dependency-updates) and [build/deploy pipelines with GitHub Actions](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions). - [`semantic.yaml`](./github/semantic.yaml): Configuration for [semantic pull requests](https://github.com/apps/semantic-pull-requests)\ -- `examples`: Example terraform project templates +- `examples`: Example terraform project templates. - `site`: Front-end UI code. ## Development From 4deb0ad8092bb9a5c951a42c3ef53e74d2aa0157 Mon Sep 17 00:00:00 2001 From: Bryan Phelps Date: Fri, 18 Feb 2022 04:40:21 +0000 Subject: [PATCH 4/4] Remove version for now since minimal project does not need it --- examples/minimal-project/main.tf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/minimal-project/main.tf b/examples/minimal-project/main.tf index c598b2acebb6d..0f74afeabe9e9 100644 --- a/examples/minimal-project/main.tf +++ b/examples/minimal-project/main.tf @@ -1,7 +1,3 @@ -terraform { - required_version = ">= 0.12.26" -} - # The simplest possible Terraform module: it just outputs "Hello, World!" output "hello_world" { value = "Hello, World!"