From 6833b088f46329f07c7881458e5ff958230508c4 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Thu, 13 Jan 2022 14:23:40 +0100 Subject: [PATCH 1/2] fix: failing module_enabled=false --- iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam.tf b/iam.tf index 32a0eb9..43b74f8 100644 --- a/iam.tf +++ b/iam.tf @@ -16,7 +16,7 @@ module "iam" { module_enabled = var.module_enabled module_depends_on = var.module_depends_on - service_account_id = google_service_account.service_account[0].name + service_account_id = try(google_service_account.service_account[0].name, null) role = try(each.value.role, null) members = try(each.value.members, []) authoritative = try(each.value.authoritative, true) From 4e551a11ceb436ccead38612056a998f5094fbfa Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Thu, 13 Jan 2022 14:26:26 +0100 Subject: [PATCH 2/2] chore: prepare 0.0.9 release --- CHANGELOG.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab3655b..91cbd16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.0.9] + +### Fixed + +- Fix `module_enaled = false` + ## [0.0.8] ### Changed @@ -56,10 +62,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 -[unreleased]: https://github.com/mineiros-io/terraform-google-service-account/compare/v0.0.8...HEAD -[0.0.8]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.7...v0.0.8 +[unreleased]: https://github.com/mineiros-io/terraform-google-service-account/compare/v0.0.9...HEAD +[0.0.9]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.8...v0.0.9 +[0.0.8]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.7...v0.0.8 [0.0.7]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.6...v0.0.7 [0.0.6]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.5...v0.0.6 [0.0.5]: https://github.com/mineiros-io/terraform-google-service-account/releases/tag/v0.0.4...v0.0.5