You must be logged in to view saved presets
Creates a basic outbound connection for AWS Opensearch with direct connection mode.
data "aws_caller_identity" "current" {
}
data "aws_region" "current" {
}
resource "aws_opensearch_outbound_connection" "foo" {
connection_alias = "outbound_connection"
connection_mode = "DIRECT"
local_domain_info {
domain_name = "aws_opensearch_domain.local_domain.domain_name"
owner_id = data.aws_caller_identity.current.account_id
region = data.aws_region.current.name
}
remote_domain_info {
domain_name = "aws_opensearch_domain.remote_domain.domain_name"
owner_id = data.aws_caller_identity.current.account_id
region = data.aws_region.current.name
}
}