Reputation: 2209
I have created an EB instance which queries an Amazon Elasticsearch instance. Now I want to restrict access to my ES instance and allow only the EB instance access my ES. Therefore the question is how I can find the IP of the EB instance.
Upvotes: 1
Views: 1649
Reputation: 200476
Elastic Beanstalk instances can be deleted and recreated automatically by Elastic Beanstalk. Further, Elastic Beanstalk can add servers to your environment automatically. When this occurs you have no control over the IP address that is assigned to your instance. As such, IP based security is not a good fit when you are using Elastic Beanstalk.
According to the AWS Elastic Search service documentation, there are three types of security policies you can use:
The third option is the best fit for Elastic Beanstalk. You can define an IAM role and specify that Elastic Beanstalk attaches that role to every server instance it created.
Upvotes: 4