From 95c2fa24acf420530fb60fcedb7977f87ae461ea Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 25 Oct 2024 10:54:55 -0400 Subject: [PATCH 1/2] Add example with app's env --- examples/resources/humanitec_application/resource.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/resources/humanitec_application/resource.tf b/examples/resources/humanitec_application/resource.tf index f982046..7de04db 100644 --- a/examples/resources/humanitec_application/resource.tf +++ b/examples/resources/humanitec_application/resource.tf @@ -2,3 +2,14 @@ resource "humanitec_application" "example" { id = "example" name = "An example app" } + +resource "humanitec_application" "example" { + id = "example" + name = "An example app with default development environment overriden" + + env = { + id = "dev" + name = "Dev" + type = "development" + } +} \ No newline at end of file From ac1828607649ad8593569a302464f7cce990a6b1 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 25 Oct 2024 10:58:55 -0400 Subject: [PATCH 2/2] Update doc --- docs/resources/application.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/resources/application.md b/docs/resources/application.md index a7173e7..1072eb6 100644 --- a/docs/resources/application.md +++ b/docs/resources/application.md @@ -17,6 +17,17 @@ resource "humanitec_application" "example" { id = "example" name = "An example app" } + +resource "humanitec_application" "example" { + id = "example" + name = "An example app with default development environment overriden" + + env = { + id = "dev" + name = "Dev" + type = "development" + } +} ```