My team and I have ran into an issue whereby we are not able to authenticate and get access to our AWS ElasticSearch instance.
With other AWS services, we have been able to rely on the credentials passed through via the aws-elasticbeanstalk-ec2-role. However with the implementation of this package, this does not work. We have found that we must define AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values in the list of environment variables, in order to use ElasticSearch.
We have confirmed that the aws-elasticbeanstalk-ec2-role has the required permissions via the AmazonESFullAccess policy.
Our environment setup is as follows;
Laravel 5.8.35
PHP 7.2
cviebrock/laravel-elasticsearch 3.6.0
aws/aws-sdk-php 3.112.4
Elasticsearch 7.1
As part of the code base, we check that an index exists, if it doesn't we create it before indexing the record. It looks like it is failing to authenticate when it is checking for the existence of the index.
My team and I have ran into an issue whereby we are not able to authenticate and get access to our AWS ElasticSearch instance.
With other AWS services, we have been able to rely on the credentials passed through via the aws-elasticbeanstalk-ec2-role. However with the implementation of this package, this does not work. We have found that we must define AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY values in the list of environment variables, in order to use ElasticSearch.
We have confirmed that the aws-elasticbeanstalk-ec2-role has the required permissions via the AmazonESFullAccess policy.
Our environment setup is as follows; Laravel 5.8.35 PHP 7.2 cviebrock/laravel-elasticsearch 3.6.0 aws/aws-sdk-php 3.112.4 Elasticsearch 7.1
As part of the code base, we check that an index exists, if it doesn't we create it before indexing the record. It looks like it is failing to authenticate when it is checking for the existence of the index.
Do you have any advice on why this might be the case and how it may be resolved?