Questions tagged [aws-amplify-cli]

Use this tag to group queries related to AWS Amplify that are related to the CLI instead of the SDK or Amplify component libraries.

The Amplify framework has several products, including:

  • Amplify CLI (open source)
  • Amplify SDK for JS (open source) and 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 first offering.

357 questions
17
votes
3 answers

AWS Amplify -- Cannot iteratively rollback as the following step does not contain a previousMetaKey: {"status":"WAITING_FOR_DEPLOYMENT"}

Summary: When attempting to amplify push changes to my graphql api via the Amplify CLI after aborting an amplify push (using ctrl-c) the cli complains that there is a deployment in progress and cannot deploy. First error message: A deployment is in…
Kellen Busby
  • 531
  • 4
  • 10
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
13
votes
2 answers

ReferenceError: globalThis is not defined

I have installed the npm module aws-amplify/cli globally by using the following code: npm install -g @aws-amplify/cli This worked, but when trying to initialise my environment using the amplify cli, it gives me the following…
Tometoyou
  • 7,792
  • 12
  • 62
  • 108
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…
12
votes
4 answers

No Amplify backend project files detected within this folder

How can I solve the issue of "No Amplify backend project files detected within this folder. Either initialize a new Amplify project or pull an existing project" Am always having this issue on Windows with Amplify. I am following the TindeClone, just…
Benjamin Ikwuagwu
  • 377
  • 1
  • 9
  • 28
12
votes
3 answers

Can I regenerate the amplify file team-provider-info.json?

I have an amplify react app with resources pushed to cloud. Unfortunately, when I went to commit I removed the team-provider-info.json without backing it up. I have every other file that originated with amplify in my local project. Can I regenerate…
MarshHawk
  • 491
  • 7
  • 13
12
votes
8 answers

Amplify configure

I have installed 'amplify-cli'. When I type 'amplify configure', I get the error message: 'amplify is not recognized as an internal or external command, operable program or batch file'.
Kebasita
  • 181
  • 2
  • 2
  • 9
11
votes
2 answers

How to set the trigger of a lambda function in amplify?

I am using the amplify framework from AWS to build a webapp in Vue.js. As for now, I am using the cognito service to authenticate users. I want to trigger a lambda function when the user first create his account. I already created a lambda function…
10
votes
4 answers

How can I deploy a new version of an existing Amplify app using the AWS/Amplify CLI without user interaction?

I am a newbie in using AWS Amplify and I just published my own frontend WebApp with it developed with React. I just zipped my build folder and dropped the resulting zip file in the AWS Console. It is working fine. However, the job is done manually…
Daan
  • 2,478
  • 3
  • 36
  • 76
10
votes
9 answers

Missing aws-exports.js always when building AWS Amplify React app with Amplify integrations

my React app uses GraphQL API, Storage, Auth, Functions, Hosting - all the fun stuff - so i must have an aws-exports.js file available. Amplify React Front end with Amplify Backend resources. Repo basically setup as: package.json src/ -…
mewc
  • 1,253
  • 1
  • 15
  • 24
10
votes
2 answers

Amplify CreateApp Permission

My goal is to finish initialising amplify on my Xcode project with amplify init command. In process of initialising amplify after I choose profile I get an AccessDeniedException. Here is the whole error: init failed AccessDeniedException: User:…
9
votes
1 answer

How can I connect an existing app in the AWS Amplify Console with the AWS Amplify CLI?

As described here I can host my app in AWS Amplify console from AWS Amplify CLI: https://aws.amazon.com/de/blogs/aws/host-your-apps-with-aws-amplify-console-from-the-aws-amplify-cli/ Is it also possible to connect an existing app to the CLI? When I…
9
votes
3 answers

AWS Amplify & React - Module not found: Can't resolve '@aws-amplify/analytics'

I am trying to add Login functionality to a React app I'm building using Amplify and AWS Cognito, but when I add the following line in my Login.js file: Import {Auth} from "aws-amplify-react"; and try to compile, I get the following error: Failed…
Danf
  • 1,409
  • 2
  • 21
  • 39
8
votes
1 answer

AWS Amplify CLI CloudFront S3 Restrictions

When hosting a site with AWS S3 and CloudFront, it's possible to restrict access to content that you serve from Amazon S3 buckets. I want to restrict access to assets on S3 to my Amplify App (CDN). Is it possible to achieve the same restriction…
8
votes
1 answer

AWS Amplify GraphQL Unknown Directive in Android Studio

I have been experimenting with AWS Amplify to generate a GraphQL API and backend. I can create a working backend using the guided schema creation. I chose the Todo example. I can call it from an app built in Android Studio. Queries and mutations…
1
2 3
23 24