We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c696582 commit 2da8c45Copy full SHA for 2da8c45
iam.tf
@@ -29,6 +29,7 @@ CONFIG
29
30
# Service-linked role to give Amazon ES permissions to access your VPC
31
resource "aws_iam_service_linked_role" "es" {
32
+ count = var.create_service_link_role == true ? 1 : 0
33
aws_service_name = "es.amazonaws.com"
34
description = "Service-linked role to give Amazon ES permissions to access your VPC"
35
}
variables.tf
@@ -244,3 +244,10 @@ variable "timeouts_update" {
244
type = string
245
default = null
246
247
+
248
+# Service Link Role
249
+variable "create_service_link_role" {
250
+ description = "Create service link role for AWS Elasticsearch Service"
251
+ type = bool
252
+ default = true
253
+}
0 commit comments