OpenSearch VPC endpoint cannot be created manually before SIEM platform deployment.
Details
While deploying the stack (through Terraform) with a provided VpcEndpointId (in order to configure the SIEM platform as private), we fall in a deadlock situation.
We are facing this error:
Error: creating OpenSearch VPC Endpoint: ValidationException: Either the domain doesn't exist, it doesn't support creation of VPC endpoints
Cause of error
This is because it's not possible to create the OpenSearch VPC endpoint before creating the OpenSearch platform itself.
Version
v2.10.2a
Possible solutions
Solution 1
Integrate the VPC endpoint creation directly in the CloudFormation template.
Solution 2
In the CloudFormation template, add a parameter like PubliclyAccessible (true/false) to determine the type of access, so that we can attach a VPC endpoint a posteriori.
Summary
OpenSearch VPC endpoint cannot be created manually before SIEM platform deployment.
Details
While deploying the stack (through Terraform) with a provided
VpcEndpointId
(in order to configure the SIEM platform as private), we fall in a deadlock situation.Here is the Terraform code:
We are facing this error:
Error: creating OpenSearch VPC Endpoint: ValidationException: Either the domain doesn't exist, it doesn't support creation of VPC endpoints
Cause of error
This is because it's not possible to create the OpenSearch VPC endpoint before creating the OpenSearch platform itself.
Version
v2.10.2a
Possible solutions
Solution 1
Integrate the VPC endpoint creation directly in the CloudFormation template.
Solution 2
In the CloudFormation template, add a parameter like
PubliclyAccessible
(true/false
) to determine the type of access, so that we can attach a VPC endpoint a posteriori.In your CloudFormation template, this part:
would be replaced by something like: