Questions tagged [aws-amplify]

AWS framework for rapidly developing backends for mobile and web applications.

AWS Amplify provides the greatest common denominators for mobile backends, including authentication, analytics, notifications, storage, and offline realtime database AWS AppSync.

It works for Android, iOS, and Web clients, and provides integration with popular client runtimes such as React Native, React, Angular, and Ionic.

AWS Amplify provides a modern toolchain, including a powerful CLI and codegen.

See more at their website: https://docs.amplify.aws/

4787 questions
17
votes
4 answers

aws-amplify js to angular app has error: global is not defined

I am testing AWS Amplify from Angular to Cognito User Pool following: https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js The Angular app has successfully compiled however the exception throws out in the Chrome console: index.js:43…
beewest
  • 4,486
  • 7
  • 36
  • 63
17
votes
3 answers

How to handle api errors using aws-amplify?

I'm currently trying to POST data to my aws lambda functions triggered by aws api-gateway using the aws-amplify react lib. Here is the code : API.post("snippets","snippets/", { body: data, }).then(response =>…
16
votes
2 answers

Getting 403 ACCESS DENIED error when deploying React Web app on AWS Amplify

Been racking my brain on this for a couple of days. I am trying to deploy my react app on AWS Amplify. When I launch the application I am correctly directed to a sign in page (Uses Auth0 Universal login) After logging in I am redirected back to my…
Zak DeBrine
  • 181
  • 1
  • 4
16
votes
2 answers

How to Filter List/Queries With AND/OR operators AWS Amplify JavaScript GraphQL

I am new to using AWS Amplify and GraphQL. Also just started building out React Native App - which is a lot of fun! I have a table called TimePeriods schema for it looks like this type TimePeriod @model { id: ID! name: String! startYear:…
user4770804
16
votes
1 answer

Difference between AWS Amplify & Apollo Client for GraphQL?

I agree Apollo Client is a pain to set up because of lots of boilerplate (although it becomes simple after reading the docs) & things like AWS Amplify, URQL, Apollo Boost & Micro GraphQL React makes it easy to work with GraphQL on the client. I am…
deadcoder0904
  • 7,232
  • 12
  • 66
  • 163
15
votes
4 answers

dynamodb PartiQL SELECT query returns ValidationException: Unexpected from source

I am using Amplify to setup a dynamodb with a corresponding lambda using the amplify blueprint for dynamodb. Accessing the dynamodb the "classic" way with KeyConditionExpression etc works just fine but today I wanted to try and use PartiQL instead…
15
votes
2 answers

AWS-Amplify API module: how to make GraphQL fields unique?

AWS-Amplify provides a couple of directives to build an GraphQL-API. But I haven't found out how to ensure uniqueness for fields. I want to do something like in GraphCool: type Tag @model @searchable { id: ID! label: String! @isUnique } This is…
Philip Claren
  • 2,705
  • 3
  • 24
  • 33
14
votes
1 answer

"No current user": Isn't it even possible to make unauth calls to AWS AppSync through Amplify with authentication type AMAZON_COGNITO_USER_POOLS?

I have an AWS AppSync schema with the default authorization mode set to Amazon Cognito User Pool. I make calls to this AppSync endpoint from a web app using AWS Amplify GraphQL Client and, coherently, its configuration points Cognito User Pools as…
14
votes
2 answers

Configure Cloudflare to point to AWS Amplify

I use Cloudflare to generate SSL and AWS Amplify to host the project. I would like to configure Cloudflare to point to AWS Amplify project. These are the current DNS records, which points to the current server. This is the project URL and the URL…
Matt
  • 8,195
  • 31
  • 115
  • 225
14
votes
8 answers

Amplify: CORS header ‘Access-Control-Allow-Origin’ missing error even though CORS is enabled in API Gateway and Lambda headers

I'm using Amplify, and have my API Gateway proxying to Lambda. I've enabled CORS on my /{proxy+} and deployed the API. In my Lambda function, I'm setting the appropriate header in my trivial function: import json def handler(event, context): …
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
13
votes
1 answer

What's the difference between aws-amplify-react and @aws-amplify/ui-react?

I saw many docs and places saying to use aws-amplify-react but here on the docs to get start with react I saw this package @aws-amplify/ui-react to use the module withAuthentication (which aws-amplify-react also has) What's the difference between…
Lucas Andrade
  • 4,315
  • 5
  • 29
  • 50
13
votes
7 answers

Amplify React Native - Duplicate Error using amplify add api

I'm using this Amplify guide https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/#connect-to-your-backend-1 and when I create an API using "aplify add api" the app fails. I'm using "expo" and I'm using IphoneX for test…
j_hen
  • 173
  • 1
  • 8
13
votes
4 answers

Amplify publish causes AccessDenied error

I deploy a simple web app to S3 via amplify publish. The hosting has Cloudfront enabled (I selected the PROD environment in amplify while setting up hosting) and I'm working in the eu-central-1 region. But whenever I try to access the Cloudfront…
morgler
  • 1,669
  • 1
  • 18
  • 26
13
votes
2 answers

Cognito authentication with username or unique email via AWS Amplify

Amplify CLI authentication with Cognito user pools currently has two main modes, signin with username or with email. In the former case email uniqueness as a required user attribute is not being enforced. Cognito service by itself supports the "Also…
13
votes
2 answers

How to enable and view create-react-app proxy logs?

How can I view detailed logs of all requests and responses being handled by the proxy used by create-react-app? I don't only want to log some endpoints. Instead, I want to see everything, in as much detail as possible, about what's going through the…