Skip to content

Commit

Permalink
Merge pull request #18 from mineiros-io/mariux/fix-enabled
Browse files Browse the repository at this point in the history
fix: failing module_enabled=false
  • Loading branch information
czerasz-mineiros authored Jan 13, 2022
2 parents 1b2eb82 + 4e551a1 commit 70ea052
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,10 +62,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- markdown-link-check-disable -->

[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

<!-- markdown-link-check-disabled -->
[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
Expand Down
2 changes: 1 addition & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70ea052

Please sign in to comment.