tf_aws_elasticsearch
tf_aws_elasticsearch copied to clipboard
Unable to use module twice for in-VPC domains
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