terraform-aws-elasticsearch icon indicating copy to clipboard operation
terraform-aws-elasticsearch copied to clipboard

Error: error creating IAM Service Linked Role

Open rajesh-techouts opened this issue 2 years ago • 0 comments

Hi,

Getting below error while deploying 2 domains in the same account:

Error: error creating IAM Service Linked Role (es.amazonaws.com): InvalidInput: Service role name AWSServiceRoleForAmazonElasticsearchService has been taken in this account, please try a different suffix. │ status code: 400, request id: fb0ed8e1-352d-40d6-87bd-0d96d7ba7415 │ │ with module.aws_es.aws_iam_service_linked_role.es[0], │ on .terraform/modules/aws_es/iam.tf line 38, in resource "aws_iam_service_linked_role" "es": │ 38: resource "aws_iam_service_linked_role" "es" {

Please help.

Thanks, RR

rajesh-techouts avatar Feb 01 '23 06:02 rajesh-techouts