Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with amplify push and @searchable #7

Closed
KoldBrewEd opened this issue Aug 24, 2018 · 5 comments
Closed

Issue with amplify push and @searchable #7

KoldBrewEd opened this issue Aug 24, 2018 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@KoldBrewEd
Copy link

KoldBrewEd commented Aug 24, 2018

Do you want to request a feature or report a bug? Bug

What is the current behavior? CFN Error (see bellow)

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

amplify add api with the schema bellow

What is the expected behavior? Successful CFN deployment

Which versions of Amplify CLI, and which OS are affected by this issue? Did this work in previous versions?

Mac OS 10.13.6

amplify version
0.1.13

Getting this after adding @searchable to my schema.graphql file:

type Note @model @auth(rules: [{allow: owner}]) @searchable{
   id: ID!
   note: String!
}

Command output:

CREATE_FAILED      ElasticSearchStreamingLambdaIAMRole                      AWS::IAM::Role              Fri Aug 24 2018 12:09:06 GMT+1000 (AEST) 1 validation error detected: Value 'DynamoDBToElasticSearchFunctionIAMRole-3rcripkzmra7dgv7sguxtcbvpy' at 'roleName' failed to satisfy constraint: Member must have length less than or equal to64 (Service: AmazonIdentityManagement; Status Code: 400; Error Code: ValidationError; Request ID: ade4c087-a742-11e8-a308-3f93e4aa5764)
CREATE_FAILED      NoteTable                                                AWS::DynamoDB::Table        Fri Aug 24 2018 12:09:06 GMT+1000 (AEST) Resource creation cancelled
CREATE_FAILED      ElasticSearchAccessIAMRole                               AWS::IAM::Role              Fri Aug 24 2018 12:09:07 GMT+1000 (AEST) Resource creation cancelled
CREATE_FAILED      GraphQLAPIKey                                            AWS::AppSync::ApiKey        Fri Aug 24 2018 12:09:07 GMT+1000 (AEST) Resource creation cancelled
CREATE_FAILED      GraphQLSchema                                            AWS::AppSync::GraphQLSchema Fri Aug 24 2018 12:09:09 GMT+1000 (AEST) Resource creation cancelled
CREATE_FAILED      amplifynotes-20180824120309-apiamplifynotes-6TYPHPY4C6HP AWS::CloudFormation::Stack  Fri Aug 24 2018 12:09:10 GMT+1000 (AEST) The following resource(s) failed to create: [ElasticSearchStreamingLambdaIAMRole, ElasticSearchAccessIAMRole, GraphQLAPIKey, NoteTable, GraphQLSchema].
⠏ Updating resources in the cloud. This may take a few minutes...

CREATE_FAILED               apiamplifynotes             AWS::CloudFormation::Stack Fri Aug 24 2018 12:09:13 GMT+1000 (AEST) Embedded stack arn:aws:cloudformation:ap-southeast-2:244958302947:stack/amplifynotes-20180824120309-apiamplifynotes-6TYPHPY4C6HP/a43cac80-a742-11e8-b21f-503f2373503d was not successfully created: The following resource(s) failed to create: [ElasticSearchStreamingLambdaIAMRole, ElasticSearchAccessIAMRole, GraphQLAPIKey, NoteTable, GraphQLSchema].
UPDATE_ROLLBACK_IN_PROGRESS amplifynotes-20180824120309 AWS::CloudFormation::Stack Fri Aug 24 2018 12:09:13 GMT+1000 (AEST) The following resource(s) failed to create: [apiamplifynotes].
⠇ Updating resources in the cloud. This may take a few minutes...
@kaustavghosh06
Copy link
Contributor

Hey Ed, @mikeparisstuff pushed a fix for this and we'll publish this to NPM by end of day. I'll close this issue once we publish.

@KoldBrewEd
Copy link
Author

Awesome, thanks!

@kaustavghosh06
Copy link
Contributor

The fix for this has been pushed tp NPM. You can update the CLI and feel free to re-open this issue if you find the fix still not working

@KoldBrewEd
Copy link
Author

Worked like a charm:

✔ All resources are updated in the cloud

Thanks a lot, guys!

kaustavghosh06 pushed a commit that referenced this issue Nov 14, 2019
feat: add meaningful symbols and messages for create-amplify-app
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants