All Questions
Tagged with opensearch aws-lambda
25 questions
0
votes
1
answer
75
views
Lambda timing out while connecting to S3 within VPC with Gateway endpoint active
I'm trying to connect from Lambda to S3 within a VPC. Sometimes it works, sometimes it doesn't. An S3 endpoint is made within the VPC and it's working correctly as it sometimes demonstrates.
The weird ...
0
votes
0
answers
62
views
Unable set up OpenSearch manual snapshots with the master user from an "internal user database"
We have an OpenSearch domain with manual snapshots, it was working fine until we enable fine grained access control with master user from "Internal user database".
This is the related CDK ...
2
votes
1
answer
758
views
AWS python lambda function : Unable to import module 'lambda_function': No module named events
I am new to AWS and Elasticsearch/Opensearch, and I am having some issues.
I have a Lambda based on python (v3.12) that previously worked with Elasticsearch. My client wants to use Opensearch instead, ...
0
votes
0
answers
29
views
Elasticsearch gives different scores for me and my client
I am currently working with AWS. I use an EC2 instance with Opensearch installed on it.
My client uses its own AWS account, with Amazon Opensearch Service (managed Opensearch).
We both use the same ...
0
votes
0
answers
111
views
AWS Opensearch request signature matching issue
Cretaed an AWS Opensearch and lambda in a single VPC. And inside the lambda I have the given code. When I try to invoke the lambda it shows the given error.
I don't know how the signature works.
Error ...
0
votes
0
answers
59
views
lambda function delete opensearch domain
I have the following lambda function that add an expiryDate tag to untagged opensearch Domains
import boto3
import datetime
def lambda_handler(event, context):
# Get a list of all AWS regions
...
1
vote
1
answer
5k
views
Accessing Opensearch Serverless from a Lambda in AWS
I'm trying to access my Opensearch Serverless collection using a Nodejs lambda. This is what my lambda code looks like:
import { Client } from '@opensearch-project/opensearch';
const REGION = 'eu-...
1
vote
1
answer
3k
views
How to connect AWS OpenSearch Serverless to Lambda to inject data?
I'm trying to do a PUT request to upload data to a collection I have created. However, I'm getting a '403' error; 'User does not have permissions for the requested resource'.
I believe I have granted ...
1
vote
1
answer
2k
views
How do I configure Lambda with a VPC to access OpenSearch
I am trying to create a simple pipeline to index S3 documents using OpenSearch. The S3 trigger part is straightforward but I cannot figure out connecting the Lambda to OpenSearch. I have done the ...
2
votes
1
answer
878
views
How do I use basic authentication on AWS OpenSearch with SAML enabled
I have a new OpenSearch instance with SAML enabled. I also have the internal user database and basic auth enabled.
My users can log in with SAML as expected - all good. But how do my lambdas ...
0
votes
1
answer
377
views
AWS SAM Lambda policy for OpenSearch
I couldn't get a valid IAM policy to work for a Lambda function to OpenSearch.
Replicate:
Type: AWS::Serverless::Function
Properties:
FunctionName: !Sub ${AWS::StackName}-Replicate
...
0
votes
2
answers
3k
views
How to issue POST requests to opensearch cluster in VPC?
I've deployed an opensearch cluster into a VPC. I have a VPC endpoint and can successfully issue GET requests to "VPC endpoint URL"/_cluster/settings to get the cluster config, but issuing ...
1
vote
1
answer
936
views
How to pass values from CDK into a lambda
I am trying to create a service that employs a Lambda function and an opensearch domain. I have one cdk stack typescript file that creates all my service instances and I want to pass the endpoint for ...
1
vote
0
answers
1k
views
Date field in OpenSearch index showing as String in Discover page
I've got to index a JSON file to OpenSearch through AWS Lambda from a S3 bucket to create several reports out of it. However a field that is supposed to be a date field is showing as if it was String ...
0
votes
1
answer
921
views
Error in signer.addAuthorization(credentials, new Date()) while signing opensearch request in Nodejs Lambda
I'm uploading document to AWS Openseach using AWS Lambda.
Here's my code, I'm first getting credentials from AWS using EnvironmentCredentials and then passing it to AWS.Signers.V4().addAuthorization() ...