# Variables ==================================================================== variable "tags" { description = "Tags applied to all resources in this module." type = map(string) default = {} } variable "share_invitations" { description = <<-EOT Map of RAM resource share invitations to accept. share_arn is required and must reference a share for which this account is the invited principal. The calling stack must pass in a provider authenticated as the receiving account for this invocation. EOT type = map(object({ share_arn = string })) default = {} validation { condition = alltrue([ for k, v in var.share_invitations : can(regex("^arn:aws:ram:", v.share_arn)) ]) error_message = "share_arn must be a valid RAM resource share ARN (arn:aws:ram:...)." } }