opensearch-project / opensearch-cli

A full-featured command line interface (CLI) for OpenSearch.
https://opensearch.org/docs/latest/clients/cli/
Apache License 2.0
44 stars 24 forks source link

[FEATURE] Improve `opensearch-cli profile create` command #49

Open AlJohri opened 2 years ago

AlJohri commented 2 years ago

Is your feature request related to a problem?

I would like to improve the opensearch-cli profile create command to allow passing in flags for the "AWS Profile name" and "AWS Service name". These options currently require user input which makes it difficult to explain to colleagues how to set up opensearch-cli or to automate the process of setting up profiles for different clusters on different accounts.

What solution would you like? I would like to see a --profile and --service flag added to the profile create command.

What alternatives have you considered? You can also potentially use --aws-profile or --aws-service flags to differentiate between an opensearch profile and AWS profile.

Do you have any additional context? My internal alias is aljohri@ if anyone is interested in chatting further.

robfig commented 1 year ago

I came here to make the same request. The current flow prevents me from easily scripting profile creation.