Error encountered in OpenSearch Pipeline

0

I am getting this error in a pipeline , per the CW logs I see

2024-04-18T14:34:25.809 [waf-access-log-pipeline-sink-worker-2-thread-1] WARN org.opensearch.dataprepper.plugins.sink.opensearch.OpenSearchSink - Failed to initialize OpenSearch sink with a retryable exception. org.opensearch.client.opensearch._types.OpenSearchException: Request failed: [security_exception] no permissions for [cluster:monitor/state] and User [name=arn:aws:iam::329243463654:role/osiPipelineRole, backend_roles=[arn:aws:iam::329243463654:role/osiPipelineRole], requestedTenant=null]

per the documentation I granted the specific role the trust relationship(below) and I also added the osis:* and es:* permissions as to my role in my account, what could I be missing?

Thanks in advance

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "osis-pipelines.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}
AWS
jay-aws
asked 13 days ago58 views
1 Answer
0

Hello,

It looks like your domain was enabled Fine-grained access control feature. [+] https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html

In that case, you need to map users or backend role using following document. [+] Fine-grained access control in Amazon OpenSearch Service - Mapping roles to users - https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-mapping

In your case, you need to map arn:aws:iam::329243463654:role/osiPipelineRole to backend role.

I hope above information helps.

profile pictureAWS
SUPPORT ENGINEER
answered 8 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions