Access OpenSearch
In this section we will retrieve credentials for OpenSearch from the AWS Systems Manager Parameter Store, load pre-created OpenSearch dashboards for Kubernetes events and pod logs and confirm access to OpenSearch.
Credentials for the OpenSearch domain have been saved in the AWS Systems Manager Parameter Store during the provisioning process. Retrieve this information and set up the necessary environment variables.
Load pre-created OpenSearch dashboards to display Kubernetes events and pods logs. The dashboards are available in the file which includes the OpenSearch index patterns, visualizations and dashboards for Kubernetes events and pod logs.
{
"username": "admin",
"tenants": {
"global_tenant": true,
"admin": true
},
"roles": [
"security_manager",
"all_access"
],
"backendroles": []
}
{
"successCount": 7,
"success": true,
"successResults": [
{
"type": "index-pattern",
"id": "79cc3180-6c51-11ee-bdf2-9d2ccb0785e7",
"meta": {
"title": "eks-kubernetes-events*",
"icon": "indexPatternApp"
}
},
...
]
}
View the OpenSearch server coordinates and credentials that we retrieved earlier and confirm that the OpenSearch dashboards are accessible.
OpenSearch dashboard: <OpenSearch Dashboard URL>
Username: <user name>
Password: <password>
Point your browser to the OpenSearch dashboard URL above and use the credentials to login.
Select the Global tenant as shown below. Tenants in OpenSearch can be used to safely share resources such as index patterns, visualizations and dashboards.
You should see the two dashboards (for Kubernetes events and pod logs) that were loaded in the earlier step. The dashboards are currently empty since there is no data in OpenSearch yet. Keep this browser tab open or save the dashboard URLs. We will return to the dashboards in the next sections.