尝试运行flightplan以推送到暂存时,我收到以下错误。
我有一位同事正在使用这个确切的git repo和相同的凭据和他的作品,但是我的这个错误。知道为什么我的不工作吗?我需要安装什么东西吗?
Benjamins-MBP:XXXXXXX-deploy Ben$ fly --flightplan web-flightplan.js staging --keyfile=/Users/Ben/.ssh/XXXXXX-web-key-pair.pem
Fetching instances for group: 'XXXXXXX-staging-web'
A client error (AuthFailure) occurred when calling the DescribeInstances operation: Authorization header or parameters are not formatted correctly.
● Error: Command failed: /Users/Ben/git/XXXXXX-deploy/app/../scripts/get_aws_instances XXXXXXX-staging-web
A client error (AuthFailure) occurred when calling the DescribeInstances operation: Authorization header or parameters are not formatted correctly.
at checkExecSyncError (child_process.js:441:13)
at execSync (child_process.js:481:13)
at Object.module.exports.fetch (/Users/Ben/git/XXXXXXX-deploy/app/instance-fetcher.js:11:27)
at Object.<anonymous> (/Users/Ben/git/XXXXXXX-deploy/web-flightplan.js:40:31)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
describeinstances的客户端代码op:
#!/bin/bash
GROUP=$1
if [ -z "$GROUP" ]; then
echo "Specify group as only parameter"
exit 1
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/aws_keys
. $DIR/aws_region_us
aws ec2 describe-instances --filters "Name=tag:group,Values=$GROUP"