Questions tagged [aws-amplify-sdk-js]

Use this tag to group queries related to AWS Amplify that are related to the JavaScript SDK as opposed to the Amplify CLI or the iOS / Android libraries.

The Amplify framework has several products, including:

  • Amplify CLI (open source)
  • Amplify SDK for JS (open source)
  • Amplify React, Angular, and Vue component libraries
  • Amplify SDKs for iOS / Android (open source)
  • Amplify Console (managed, paid service)

This tag can be used to group queries just related to the second bullet.

87 questions
2
votes
2 answers

Getting credentials for logged in user via Amplify Auth

I am using AWS Amplify for a ReactJS application. The only two functional areas I am using from Amplify are Authentication and Hosting. These two are working fine, and a Cognito user pool associated with the project is working as expected, providing…
2
votes
1 answer

How do you prevent updates to the ownerField of an AWS Amplify GraphQL API?

I created a GraphQL API using AWS' Amplify. In the schema, I have a Comment model that looks like this: type Comment @auth(rules: [{ allow: owner }, { allow: private, operations: [read] }, { allow: public, operations: [read] }]) @model …
2
votes
0 answers

Validation error when trying to log in to app using Amazon Cognito

After making updates to my aws app, I'm suddenly getting this error when trying to log in. 2 validation errors detected: Value '_______@gmail.com' at 'userName' failed to satisfy constraint: Member must satisfy regular expression pattern:…
2
votes
3 answers

AWS Amplify/amplify-js forgotPassword() returns no error with invalid userName

I'm implementing authentication components with aws-amplify (Vue/TypeScript). Using forgotPassword(userName: string), I'm trying to send a verification code to the target email…
Yozz
  • 435
  • 5
  • 16
2
votes
4 answers

"amplify publish" fails to deploy without any detailed error stack trace

We are using AWS amplify to develop our next.js application for the first time and trying manual deployment process. We are getting following error when we try to run "amplify publish". This error is frustrating because there is no stack trace to…
June2017
  • 169
  • 3
  • 14
2
votes
0 answers

Change auth state from custom component while using @aws-amplify with react

I am trying to integrate Amplify Auth with a React application. I am using AmplifyAuthenticator from @aws-amplify/ui-react package to customize the auth flow. Though I can use AmplifySignIn component and customize it, I want to create a totally…
Vikas Roy
  • 854
  • 2
  • 10
  • 25
2
votes
0 answers

Nested GraphQL mutations with AWS Amplify

I'm struggling to write a nested GraphQL mutation for a React Native app I'm building with GraphQL client being AWS Amplify API. Here's my type definition file type Game @model { id: ID! gameId: String! players: [Player!]! } type Player…
tlaminator
  • 946
  • 2
  • 9
  • 23
2
votes
0 answers

CognitoIdentityCredentials is not authorized to perform: apigateway:GET on resource: arn:aws:apigateway:eu-west-1::/restapis

Can someone please assist in pointing out what the issue might be when I try to access AWS apigateway resources using AWS Amplify Javascript SDK. When a user logs into the platform (a portal I'm building)- the role assumed by the AuthRole is able to…
2
votes
1 answer

Mock and Test DynamoDB Table created by Amplify @model

I used @model annotation to create a table and a function that adds an entry in that table as a PostAuthentication Trigger to User pool. It works fine when I push it to AWS. But facing some issues in testing it locally. MockData is there in…
2
votes
2 answers

AWS Amplify federatedSignIn Error: Cannot read property '_config' of undefined

I have a react app built with AWS Amplify. I followed the getting started guide and initialized the project in App.js like so: import Amplify, { Auth } from 'aws-amplify'; import awsconfig from './aws-exports'; Amplify.configure(awsconfig); In my…
2
votes
1 answer

Storage.list() returning an empty array

I am trying to make a webpage to view all of the files in a Cognito accounts private folder in S3. I'm using the Amplify Auth and Storage plugins, and I know they are both configured properly because I already have file upload working. I found this…
1
vote
0 answers

Bitbucket Pipeline for amplify

I have setup the CICD pipeline in bitbucket and I have amplify the folder in the repository to get the backend configuration. Right now I have setup the development environment and works fine. Existing bitbucket-pipeline.yml pipelines: default: …
1
vote
2 answers

I have a graphQL query and wanted to convert it GraphQL Transformer v1 to v2

I was working on an existing project using amplify with GraphQl API. The query shows issues with @Key as Your GraphQL Schema is using "@key" directive from an older version of the GraphQL Transformer . Since I am new to graphQL, what should I change…
1
vote
0 answers

How to use AWS Cognito with a web app and REST API

I have a React.js web app that talks to a Golang REST API and I'm using AWS Cognito for authentication. It is all working but I am not confident that it is correct. The web app provides username/password sign in using the AWS Amplify SDK, which…
Lucian Thorr
  • 1,997
  • 1
  • 21
  • 29
1
vote
2 answers

Inaccessible host: `amplify-***-deployment.s3.ap-southeast-1.amazonaws.com' at port `undefined'

I am trying to do an 'amplify push' to my environment but keep getting this error. Please help. Full message: An error occurred during the push operation: Inaccessible host: amplify-berry-akbox-184738-deployment.s3.ap-southeast-1.amazonaws.com' at…