# Share the table to the remote role # Remote account 1: resource "aws_lakeformation_permissions" "ra1-table" { principal = format("arn:aws:iam::%s:role/lf-admin",var.remote_acct_1) permissions = ["DESCRIBE","SELECT"] lf_tag_policy { resource_type = "TABLE" expression { key = "share" values = ["teams"] } expression { key = "sensitivity" values = ["public", "private"] } } } # Remote account 2: resource "aws_lakeformation_permissions" "ra2-table" { principal = format("arn:aws:iam::%s:role/lf-admin",var.remote_acct_2) permissions = ["DESCRIBE","SELECT"] lf_tag_policy { resource_type = "TABLE" expression { key = "share" values = ["teams"] } expression { key = "sensitivity" values = ["public", "private"] } } }