Skip to content

Commit

Permalink
Service-linked role with name es.amazonaws.com cannot be set multiple…
Browse files Browse the repository at this point in the history
… times
  • Loading branch information
sugdyzhekov committed Apr 19, 2020
1 parent 5f33bc8 commit 900b298
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions elasticsearch.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
resource "aws_iam_service_linked_role" "es" {
aws_service_name = "es.amazonaws.com"
}

resource "aws_elasticsearch_domain" "default" {
domain_name = local.domain_name
elasticsearch_version = local.version
Expand All @@ -24,4 +20,4 @@ resource "aws_elasticsearch_domain" "default" {
security_group_ids = [aws_security_group.elasticsearch.id]
subnet_ids = local.subnets
}
}
}

0 comments on commit 900b298

Please sign in to comment.