╷
│ Error: creating OpenSearch Domain: ValidationException: You must specify exactly one subnet.
│
│ with aws_opensearch_domain.opensearch,
│ on main.tf line 66, in resource "aws_opensearch_domain" "opensearch":
│ 66: resource "aws_opensearch_domain" "opensearch" {
│
Scenario
Need to create opensearch cluster inside a vpc. We have multiple subnets dedicated for Opensearch. Version Used = 0.0.16 Aws provider version = 4.60.0
Configuration used
Output