tf_aws_elasticsearch icon indicating copy to clipboard operation
tf_aws_elasticsearch copied to clipboard

Unable to use module twice for in-VPC domains

Open CarpathianUA opened this issue 5 years ago • 0 comments

Since aws_elasticsearch_domain resource depends_on aws_iam_service_linked_role, and aws_iam_service_linked_role can be only one per account and it's creation need to be disabled by create_iam_service_linked_role = "false" for second domain definition, the module can't be used for provisioning two in-VPC domains https://github.com/terraform-community-modules/tf_aws_elasticsearch/blob/5191edd31a411acee699786eed92d3d6623a5f44/main_vpc.tf#L33

CarpathianUA avatar Jan 20 '20 11:01 CarpathianUA