amplify-category-api
amplify-category-api copied to clipboard
@searchable is not creating OpenSearch instances
How did you install the Amplify CLI?
pnpm
If applicable, what version of Node.js are you using?
18
Amplify CLI Version
10.5.0
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
n/a
Describe the bug
When adding @searchable to our GraphQL schema models we see ElasticSearch v7.10 is being created instead of OpenSearch v1.x
"Resources": {
"OpenSearchDomain": {
"Type": "AWS::Elasticsearch::Domain",
"Properties": {
"CognitoOptions": {
"Enabled": false
},
"DomainEndpointOptions": {
"EnforceHTTPS": false,
"TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07"
},
"DomainName": {
"Fn::If": [
"HasEnvironmentParameter",
{
"Ref": "AWS::NoValue"
},
{
"Fn::Join": [
"",
[
"d",
{
"Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId"
}
]
]
}
]
},
"EBSOptions": {
"EBSEnabled": true,
"VolumeSize": {
"Ref": "referencetotransformerrootstackOpenSearchEBSVolumeGBC5EEE310Ref"
},
"VolumeType": "gp2"
},
"ElasticsearchClusterConfig": {
"InstanceCount": {
"Ref": "referencetotransformerrootstackOpenSearchInstanceCount6D2C6DD4Ref"
},
"InstanceType": {
"Ref": "referencetotransformerrootstackOpenSearchInstanceTypeA365CDC7Ref"
}
},
"ElasticsearchVersion": "7.10",
"EncryptionAtRestOptions": {
"Enabled": false
},
"LogPublishingOptions": {},
"NodeToNodeEncryptionOptions": {
"Enabled": false
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
Expected behavior
CLI creates OpenSearch instead of ElasticSearch
Reproduction steps
amplify init -yamplify add api> GraphQL- add
@searchableto a model - run
amplify api gql-compile - observe ElasticSearch v7.10 in
amplify/backend/api/<api-name>/build/stacks/SearchableStack.json
Project Identifier
No response
Log output
# Put your logs below this line
Additional information
No response
Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.