Skip to content

Commit

Permalink
Merge pull request #56 from lorengordon/count-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored May 14, 2020
2 parents 374a67e + ff57241 commit 1e71d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.0.0
current_version = 2.0.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_ram_principal_association" "this" {
}

resource "aws_ram_resource_share_accepter" "this" {
count = var.create_ram_principal_association && local.cross_account && var.auto_accept ? 1 : 0
count = local.create_ram_resource_share_accepter && var.auto_accept ? 1 : 0

provider = aws

Expand All @@ -32,5 +32,5 @@ data "aws_caller_identity" "owner" {
}

locals {
cross_account = join("", data.aws_caller_identity.this.*.account_id) != join("", data.aws_caller_identity.owner.*.account_id)
create_ram_resource_share_accepter = var.create_ram_principal_association ? data.aws_caller_identity.this[0].account_id != data.aws_caller_identity.owner[0].account_id : false
}

0 comments on commit 1e71d2f

Please sign in to comment.