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] Cannot map backend roles #65

Open
elchananmizrachi opened this issue Aug 9, 2023 · 4 comments
Open

[BUG] Cannot map backend roles #65

elchananmizrachi opened this issue Aug 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@elchananmizrachi
Copy link

Hi,

Trying to map roles to backend, after enabling FGAC on OpenSearch 2.3, using this block:

resource "opensearch_roles_mapping" "mapper" {
  role_name   = "logs_writer"
  description = "Mapping AWS IAM roles to ES role"
  backend_roles = [
    "arn:aws:iam::123456789012:role/lambda-call-opensearch",
    "arn:aws:iam::123456789012:role/run-containers",
  ]
}

provider version 2.0.0-beta.1

Getting:

│ Error: invalid character '<' looking for beginning of value

Did someone came across this issue and have a solution?

@elchananmizrachi elchananmizrachi added bug Something isn't working untriaged labels Aug 9, 2023
@zelinh
Copy link
Member

zelinh commented Aug 17, 2023

[Triage] @prudhvigodithi Could you help look into this? Thanks.

@zelinh zelinh removed the untriaged label Aug 17, 2023
@ekirmayer
Copy link
Contributor

@elchananmizrachi i have this running properly on 2.7 if this is an option for you

@DenisBY
Copy link

DenisBY commented Dec 15, 2023

I have the same issue but with opensearch_monitor resource

Here is the debug log. Is it possible to see a content of unexpected data?

2023-12-14T16:39:44.271+0100 [INFO]  Starting apply for module.file_dms["example"].opensearch_monitor.scan_issue
2023-12-14T16:39:44.274+0100 [DEBUG] module.file_dms["example"].opensearch_monitor.scan_issue: applying the planned Create change
2023-12-14T16:39:44.274+0100 [WARN]  unexpected data: registry.terraform.io/opensearch-project/opensearch:stderr="{"@caller":"github.com/hashicorp/terraform-plugin-sdk/[email protected]/internal/logging/helper_schema.go:21","@level":"trace","@message":"Calling downstream","@module":"sdk.helper_schema","@timestamp":"2023-12-14T16:39:44.274485+01:00"}"
2023-12-14T16:39:44.274+0100 [INFO]  provider.terraform-provider-opensearch_v2.1.0: 2023/12/14 16:39:44 [INFO] Pinging url to determine version https://os-logs-dashboard.example.com with timeout 5s: timestamp=2023-12-14T16:39:44.274+0100
2023-12-14T16:39:44.508+0100 [INFO]  provider.terraform-provider-opensearch_v2.1.0: 2023/12/14 16:39:44 [INFO] Failed to put monitor: invalid character '<' looking for beginning of value: timestamp=2023-12-14T16:39:44.508+0100
2023-12-14T16:39:44.508+0100 [WARN]  unexpected data: registry.terraform.io/opensearch-project/opensearch:stderr="{"@caller":"github.com/hashicorp/terraform-plugin-sdk/[email protected]/internal/logging/helper_schema.go:21","@level":"trace","@message":"Called downstream","@module":"sdk.helper_schema","@timestamp":"2023-12-14T16:39:44.508762+01:00"}"
2023-12-14T16:39:44.509+0100 [ERROR] vertex "module.file_dms[\"example\"].opensearch_monitor.scan_issue" error: invalid character '<' looking for beginning of value

@DenisBY
Copy link

DenisBY commented Dec 15, 2023

Could it be similar to this one?
stripe/stripe-go#642 (comment)

Or this one
grafana/k6#773

Edit:
It definitely not the first one as provider doesn't make any connections to OpenSearch. Then it's, probably, the second, however, json linter doesn't return any errors.

Edit2:
I tried to copy/paste example from here but still have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📦 Backlog
Development

No branches or pull requests

4 participants