Skip to content

amplify rebuild api fails when using searchable in schema #56

@ykethan

Description

@ykethan

Before opening, please confirm:

  • I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v16.14.0

Amplify CLI Version

8.0.1

What operating system are you using?

Windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no

Amplify Categories

api

Amplify Commands

Not applicable

Describe the bug

amplify rebuild api fails with the following error when using a schema with searchable in it.

🛑 ["Index: 0 State: {\"deploy\":\"waitingForDeployment\"} Message: Resource is not in the state stackUpdateComplete"]

tested application by pushing the schema without searchable and then amplify rebuild api the application works fine with no error.
I utilized the example provided in the documentation.

Expected behavior

perform rebuild without any errors.

Reproduction steps

  1. amplify add api
  2. paste schema containing searchable.
  3. amplify push -y
  4. amplify rebuild api

GraphQL schema(s)

type Student @model @searchable {
  name: String
  dateOfBirth: AWSDate
  email: AWSEmail
  examsCompleted: Int
}

Log output

# Put your logs below this line


Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions