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
0
votes
0 answers

aws amplify codegen - Language swift not supported

Currently working on an iOS SwiftUI Project in combination with AWS Amplify. After a reinstall of amplify cli the amplify pull command stopped producing the swift code for my models. Using the command amplify codegen I get the error Language swift…
0
votes
1 answer

How to sync enqueued data before getting data from aws amplify

On my app log in process, I have a service that get the latest datas from aws amplify DataStore Events private String processName = "Checking network status..."; private SubscriptionToken subscriptionToken; public void sync() { …
NicoTing
  • 83
  • 8
0
votes
1 answer

How can I use specific method such as GET, POST, PUT, or DELETE in API gateway by using Amplify CLI?

When adding an API gateway path, by using Amplify CLI the method is always ANY, but I want to use a specific method such as GET, POST, PUT, or DELETE instead of ANY. So, how do I use/change the path method?
0
votes
0 answers

Why do I keep getting this error from amplify " The AWS Access Key Id you provided does not exist in our records."?

I keep receiving this error "An error occurred during the push operation: The AWS Access Key Id you provided does not exist in our records." even though my keys are valid and they're properly set up from the environment. I cant get any pictures This…
0
votes
2 answers

Receiving "Unsupported element '$[operation]'." when running a mutation

I am having an issue running a mutation that was generated by the Amplify CLI. I'm on node v14.18.1, amplify CLI 7.6.2. I just recently migrated to the GraphQL Transformer v2. Here is my model: type User @model @auth( rules: [ { allow:…
Tim
  • 344
  • 1
  • 12
0
votes
1 answer

Boto3 Amplify list apps

I have a lot of amplify apps which I want to manage via Lambdas. What is the equivalent of the cli command aws amplify list-apps in boto3, I had multiple attempts, but none worked out for me. My bit of code that was using nextToken looked like…
kraken
  • 19
  • 2
0
votes
1 answer

How to add different auth for different environments in amplify project?

Is it possible to add different auth (cognito) inside one amplify project, but for different environments? Currently I have amplify project with adjusted cognito authentication and it work fine. I want to add another environment where I have to use…
Max
  • 1,634
  • 1
  • 19
  • 36
0
votes
1 answer

AWS Amplify send logs to Splunk

I'd like to send Amplify monitoring data(access logs, metrics) to Splunk - this would be best case scenario. But for the beginning it would be ok if I could at least store them into another service like s3 or even grater to link it with CloudWatch,…
0
votes
1 answer

AWS Amplify GraphQL fetch data using multiple input parameters

I'm working on Next.js and I have this setup: const data = await API.graphql({ query: projectByUserIdandProjectId, variables: { userId: props.userId, projectId: project.id, }, }); Then I have this schema: type Project @model …
hellomello
  • 8,219
  • 39
  • 151
  • 297
0
votes
1 answer

Amplify is downloading layers into function zip after CLI update

A handful of my functions include libraries that are not included in lambda environment in the form of layers. This worked just fine with Amplify CLI 5.0.2. I recently upgraded to 5.3. After the upgrade I pushed to amplify and I ran into a max…
0
votes
1 answer

Local changes on s3-cloudformation-template.json are overriden on amplify push

As part of my backend configuration, I need that an S3 bucket to get its objects automatically expired after 1 day. I included the S3 bucket to my backend with amplify storage add, but AMPLIFY-CLI is a bit limited on which can be configured for…
0
votes
0 answers

aws amplify push says "difference between the request time and current time is too large"

AWS amplify push "uploading files.." runs about 30 minutes than says "difference between the request time and current time is too large" There are many similar topic, but the difference are: I'm on windows I have different timezone: +2 hours than…
csdev
  • 1
  • 3
0
votes
1 answer

Using `$utils.defaultIfNullOrEmpty` to save Boolean Value

When the user does not send $context.arguments.input.isActive I replace this null value to a default one, like this: #set($isActive = $utils.defaultIfNullOrEmpty($context.arguments.input.isActive, true)) But for some reason, this isActive is saved…
0
votes
1 answer

SignIn and Get Guest User id - Amplify auth + SwiftUI (iOS)

I'm supporting the guest access of the app so later on the user can create the account if wanted. I've enabled unauthenticated logins doing amplify update auth. If I were to login an online registered user I would do: func signIn(username: String,…
Arturo
  • 3,254
  • 2
  • 22
  • 61
0
votes
0 answers

How to Pull changes done on the aws appsync console to my local machine?

I have made changes to my AppSync project on the AppSync web console and I want to pull it onto my local machine. I have seen the similar questions but there is no proper solution for this issue can anyone help me figure this out.