diff --git a/services/terraform/modules/shared/opensearch.tf b/services/terraform/modules/shared/opensearch.tf index e9a4d8662..c0ca9ae97 100644 --- a/services/terraform/modules/shared/opensearch.tf +++ b/services/terraform/modules/shared/opensearch.tf @@ -1,54 +1,54 @@ variable "domain" { default = "identity-search-domain" } resource "aws_security_group" "identity-search" { count = var.is_dev ? 0 : 1 name = "${var.vpc_id}-opensearch-service-${var.domain}" description = "Managed by Terraform" vpc_id = var.is_dev ? null : var.vpc_id ingress { from_port = 443 to_port = 443 protocol = "tcp" cidr_blocks = [ var.cidr_block ] } tags = { Name = "${var.vpc_id}-opensearch-service-${var.domain}" Environment = var.is_dev ? "development" : "production" } } resource "aws_opensearch_domain" "identity-search" { domain_name = var.domain engine_version = "OpenSearch_1.0" cluster_config { - instance_type = "t3.medium.search" + instance_type = "t3.small.search" } vpc_options { subnet_ids = var.subnet_ids security_group_ids = var.is_dev ? [] : [aws_security_group.identity-search[0].id] } advanced_options = { "rest.action.multi.allow_explicit_index" = "true" } ebs_options { ebs_enabled = true volume_size = 10 } tags = { Name = var.domain Environment = var.is_dev ? "development" : "production" } }