`/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
`
I faced the same issue. Make sure you followed the following:
You had set your AWS key, secret key and REGION in your system using aws configure command. Remember mostly select us-east-1
Create an IAM user with required permissions given
In package.json file I manually given the S3 bucket name, stack name and everything manually instead of setting assigning the environment variables
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
`/amazon-cognito-facial-recognition-auth$ npm run bd
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 `