amplify-category-api
amplify-category-api copied to clipboard
@searchable can not be addded to the model
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v21.6.1
Amplify CLI Version
12.10.1
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.
Do not remember exactly. Note: The environment was cloned from another one. No something special
Describe the bug
have a type Recorder @model @auth(rules: [...]) { { id: ID! firstName: String ... }
Add @searchable to it like: type Recorder @model @searchable ...
Expected behavior
@searchable should be added to the model
Reproduction steps
- Add @searchable to the model
-
amplify push
Project Identifier
26019afdc69d49143fe99441bf73b9d3
Log output
Deployment failed.
appname AWS::CloudFormation::Stack UPDATE_FAILED Thu Jan 25 2024 19:10:26…
SearchableStack AWS::CloudFormation::Stack CREATE_FAILED Thu Jan 25 2024 19:10:08…
ConnectionStack AWS::CloudFormation::Stack UPDATE_COMPLETE Thu Jan 25 2024 19:11:52
🛑 The following resources failed to deploy:
Resource Name: OpenSearchDomain (AWS::Elasticsearch::Domain)
Event Type: create
Reason: Invalid instance type: t2.small.elasticsearch (Service: AWSElasticsearch; Status Code: 409; Error Code: InvalidTypeException; Request ID: fde79bcf-4aeb-4e7c-b8a9-14eba3e9a3aa; Proxy: null)
🛑 Resource is not in the state stackUpdateComplete
Name: OpenSearchDomain (AWS::Elasticsearch::Domain), Event Type: create, Reason: Invalid instance type: t2.small.elasticsearch (Service: AWSElasticsearch; Status Code: 409; Error Code: InvalidTypeException; Request ID: fde79bcf-4aeb-4e7c-b8a9-14eba3e9a3aa; Proxy: null), IsCustomResource: false
Session Identifier: 7060d53c-d34b-4803-aa0b-2832b0dd3f7c
Additional information
Checked on the little bit older amplify and node.js version after that do updated it to the latest and the issue is still the same.
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.