diff --git a/terraform/dev/main.tf b/terraform/dev/main.tf index efe5a6295..38b685a22 100644 --- a/terraform/dev/main.tf +++ b/terraform/dev/main.tf @@ -96,13 +96,13 @@ resource "cloudfoundry_service_instance" "redis" { # Provision elasticsearch ### -# data "cloudfoundry_service" "elasticsearch" { -# name = "aws-elasticsearch" -# } - -# resource "cloudfoundry_service_instance" "elasticsearch" { -# name = "es-dev" -# space = data.cloudfoundry_space.space.id -# service_plan = data.cloudfoundry_service.elasticsearch.service_plans["es-dev"] -# json_params = "{\"ElasticsearchVersion\": \"Elasticsearch_7.10\"}" -# } +data "cloudfoundry_service" "elasticsearch" { + name = "aws-elasticsearch" +} + +resource "cloudfoundry_service_instance" "elasticsearch" { + name = "es-dev" + space = data.cloudfoundry_space.space.id + service_plan = data.cloudfoundry_service.elasticsearch.service_plans["es-dev"] + json_params = "{\"ElasticsearchVersion\": \"Elasticsearch_7.10\"}" +}