Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]AWS Lambda CLI execution results in an authentication error about Cognito authentication. #57

Closed
tasaishogo opened this issue Jan 14, 2024 · 2 comments
Labels
bug Something isn't working v1.1.0

Comments

@tasaishogo
Copy link

What is the bug?

I tried both CLI and Lambda execution with the same execution options, but the latter results in an authentication error.

How can one reproduce the bug?

Create OpenSearch using Cognito's Hosted UI as a means of authentication.
Create a Lambda for that OpenSearch using the following steps and then
https://opensearch.org/docs/2.5/dashboards/reporting-cli/rep-cli-lambda/

Execute the Lambda with the following input

{
  "url": "https://{cluster_domain}/_dashboards/app/dashboards#/view/{dashboard_id}",
  "transport": "ses",
  "from": "{mail address}",
  "to": "{mail address}",
  "subject": "Test lambda docker image",
  "auth": "cognito",
  "credentials": "{cognito username}:{cognito password}",
  "tenant": "global_tenant",
  "format": "png"
}

What is the expected behavior?

The Lambda should be authenticated.

What is your host/environment?

I use the Docker image created according to Step 1 of the official document. architecture is x86_64 as specified in the same document.

OpenSearch is ver2.11

Do you have any screenshots? The following is the result of success with CLI.

I tried opensearch-reporting-cli execution and it was succeded last week.
Reporting result

The cli execution may also be unstable. There are problems with the tenants today.
But the authentication has still been cleared.
CLI execution

The following is the result of Lambda execution which resulted in the authentication error despite specifying the same options as in the CLI.
Lambda Error

@tasaishogo tasaishogo added bug Something isn't working untriaged labels Jan 14, 2024
@rupal-bq
Copy link
Member

Similar issue as #55. Fix is merged in #65.

@rupal-bq
Copy link
Member

Closing this as it's resolved in v1.1.0. Please create issue if you are still getting any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.1.0
Projects
None yet
Development

No branches or pull requests

2 participants