Accepts a shared directory in a consumer account and configures it with an alternate AWS provider.

Terraform Template

resource "aws_directory_service_shared_directory" "example" {
  directory_id = "aws_directory_service_directory.example.id"
  notes = "example"

  target {
    id = "data.aws_caller_identity.receiver.account_id"
  }
}

resource "aws_directory_service_shared_directory_accepter" "example" {
  provider = "awsalternate"
  shared_directory_id = aws_directory_service_shared_directory.example.shared_directory_id
}