I have a Opensearch inside the VPC running in account A.
I want to deliver logs from Firehose in Account B to the Opensearch in Account A.
Is it possible? (i saw the documentation here for publicly accessibly opensearch https://repost.aws/knowledge-center/kinesis-firehose-cross-account-streaming )
When I try to create delivery stream from AWS CLI or terraform I am getting below exception,
An error occurred : InvalidArgumentException: Verify that the IAM role has access to the ElasticSearch domain.
The same IAM role, and same input.json works when modified to the Opensearch in Account B. I have Transit gateway connectivity enabled between the AWS accounts and I can connect telnet to the Opensearch in Account A from EC2 instance in Account B.
- Security group for Opensearch domain, allows the Account B VPC (443) access rule.
(I'm not using data transformation feature)