aws-samples / amazon-cognito-facial-recognition-auth

Amazon Cognito User Pool with Passwordless Facial Recognition Auth configured
MIT No Attribution
35 stars 16 forks source link

ELIFECYCLE Error, same issue as this.. https://github.com/aws-samples/amazon-cognito-facial-recognition-auth/issues/1 #3

Open AmarnathSA opened 4 years ago

AmarnathSA commented 4 years ago

`/amazon-cognito-facial-recognition-auth$ npm run bd

cognito-facial-rekognition-auth-backend@1.0.0 bd /home/ubuntu/amazon-cognito-facial-recognition-auth npm run check-env && npm run package && npm run deploy

cognito-facial-rekognition-auth-backend@1.0.0 check-env /home/ubuntu/amazon-cognito-facial-recognition-auth if [ -e ${S3_BUCKET_NAME} ] || [ -e ${USER_POOL_NAME} ] || [ -e ${STACK_NAME} ] || [ -e ${SES_FROM_ADDRESS} ]; then exit 1; fi

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cognito-facial-rekognition-auth-backend@1.0.0 check-env: if [ -e ${S3_BUCKET_NAME} ] || [ -e ${USER_POOL_NAME} ] || [ -e ${STACK_NAME} ] || [ -e ${SES_FROM_ADDRESS} ]; then exit 1; fi npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cognito-facial-rekognition-auth-backend@1.0.0 check-env script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2020-02-25T10_45_16_060Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! cognito-facial-rekognition-auth-backend@1.0.0 bd: npm run check-env && npm run package && npm run deploy npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the cognito-facial-rekognition-auth-backend@1.0.0 bd script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2020-02-25T10_45_16_076Z-debug.log `

moabdelmoez commented 3 years ago

I face the same issue, when running 'npm run bd'

TridevReddy commented 2 years ago

I faced the same issue. Make sure you followed the following:

  1. You had set your AWS key, secret key and REGION in your system using aws configure command. Remember mostly select us-east-1
  2. Create an IAM user with required permissions given
  3. In package.json file I manually given the S3 bucket name, stack name and everything manually instead of setting assigning the environment variables
  4. There need to be small change in package.json file, near capabilities parameter, it should be given three capabilities : CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND Remember to change the order of the three if it doesn't work. I am ready to help anytime, please meil me with the issue clearly. Mail: tridevreddy333@gmail.com