In the console, select Elasticsearch Service
Click the <stack-name>-domain
Click Configure Cluster
Scroll to the Kibana Authentication section and click the Enable Amazon Cognito for Authentication check box.
In the Cognito User Pool drop down, select ImdbDdbEsUserPool
In the Cognito Identity Pool drop down, select ImdbDdbEsIdentityPool
Your domain will enter the Processing state while Amazon Elasticsearch Service enables Cognito access for your domain. Wait until the domain status is Active before going on to the next step. This should take about 10 minutes.