{"id":22878574,"url":"https://github.com/scblur869/oscli","last_synced_at":"2025-03-31T14:28:42.738Z","repository":{"id":149838914,"uuid":"600770764","full_name":"scblur869/oscli","owner":"scblur869","description":"aws opensearch cli plugin","archived":false,"fork":false,"pushed_at":"2023-02-12T15:13:11.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T20:39:36.438Z","etag":null,"topics":["aws-opensearch","elasticsearch"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scblur869.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-12T14:53:49.000Z","updated_at":"2023-02-12T15:05:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"34f2e848-1d0d-4f18-ad08-78ba75a0fbe4","html_url":"https://github.com/scblur869/oscli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scblur869%2Foscli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scblur869%2Foscli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scblur869%2Foscli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scblur869%2Foscli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scblur869","download_url":"https://codeload.github.com/scblur869/oscli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246482204,"owners_count":20784655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-opensearch","elasticsearch"],"created_at":"2024-12-13T16:29:50.533Z","updated_at":"2025-03-31T14:28:42.707Z","avatar_url":"https://github.com/scblur869.png","language":"Go","readme":"# oscli\n## opensearch command-line tool\n\n### simple app in golang to give easy access to opensearch api calls from command line based on your iam role in AWS\n\n\n### Requirements:\n  - must have aws cli installed and configured with permissions to opensearch in AWS\n  - opensearch endpoint URI exposed and known\n  - go build requires access to the internet to download packages\n\nDeployment:\nclone this repository\n```console\ngit clone {.git url}\n```\n\n```console \ngo build\n```\n\n\n```console\n./oscli\nusage:\n\nadmin\n\t ls-role-mapping | ls-tenants | ls-security\nconfigure\n\t { allows for aws profile and elastic host url }\nrole-mapping\n\t new -name=role_name -user=opensearch_user -backend-role=kibana_user -host={nil or host match}\nindice\n\t delete -name=indexName\ntemplate\n\t view -name=templateName\nrole\n\t new -name=test_role -clusterperms=indices_monitor,cluster_ops -index=\"movies-*\" -indexperm=read -tenant=sales,marketing -tenantperms=kibana_all_read\ncat\n\t cluster-info | stats | nodes | templates | indices | shards | health | disk | recovery | master | count | field_data | alias\nhelp: { list this message :-) }\n```\nexample\n```console\nsome-user@ww2r32342de: ./oscli configure\nAWS Cli Profile [default]:\nopensearch Host [https://my-opensearch-host-url.us-east-1.es.amazonaws.com]:\nconfig file written..\nsome-user@ww2r32342de:\n```\n\n```console\nsome-user@ww2r32342de: ./oscli configure\nAWS Cli Profile [default]: us-east-1-dev\nopensearch Host [https://my-opensearch-host-url.us-east-1.es.amazonaws.com]: http://my-dev-cluster.us-east-1.es.amazonaws.com\nconfig file written..\nsome-user@ww2r32342de:\n```\n\n```console\n./oscli admin ls-role-mapping\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscblur869%2Foscli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscblur869%2Foscli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscblur869%2Foscli/lists"}