main.tf
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# RAM Resource Share Acceptance =================================================
# Accepts pending RAM resource share invitations. Runs using whichever
# provider the calling stack passes in for this module invocation —
# must match the account the invitation was sent to.

resource "aws_ram_resource_share_accepter" "this" {
  for_each = var.share_invitations

  share_arn = each.value.share_arn
}