使用AWS-ElasticBeanstalk-CLI-2.6.0(需要Ruby的版本)时,我开始在git aws.push
上收到以下错误:
MacBook-Pro:apps-prd katia$ git aws.push
Counting objects: 18, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (17/17), done.
Writing objects: 100% (18/18), 126.20 KiB | 0 bytes/s, done.
Total 18 (delta 10), reused 4 (delta 1)
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
我遇到this solution,建议获取最新版本的EB命令行工具并重置所引用的所有位置。
获取最新的ASW CLI(2.6.4)并重新配置后,我收到git aws.push
上的此消息:
MacBook-Pro:apps-prd katia$ git aws.push
Updating the AWS Elastic Beanstalk environment eb-prescoapps-php-env...
Environment update initiated successfully.
但是,在每次提交后部署我的应用程序需要大约20-30分钟(第2行和第3行之间的长姿势),而在此之前需要1-3分钟,具体取决于提交。
这是标准行为吗?整个应用程序是否已部署,而不仅仅是已提交的更改?有没有办法解决它?
答案 0 :(得分:1)
我刚刚对EB CLI 2.6.4进行了更新,现在它正在运行。它比以前的版本慢了一点但不超过2分钟。
人,
如果您在升级到2.6.4后不想eb init
,则只能使用以下内容更新.git/config
文件
[alias "aws.elasticbeanstalk"]
remote = !.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url
push = !.git/AWSDevTools/aws.elasticbeanstalk.push
config = !.git/AWSDevTools/aws.elasticbeanstalk.config
createapplicationversion = !.git/AWSDevTools/aws.elasticbeanstalk.createapplicationversion
[aws "endpoint"]
us-east-1 = git.elasticbeanstalk.us-east-1.amazonaws.com
ap-northeast-1 = git.elasticbeanstalk.ap-northeast-1.amazonaws.com
eu-west-1 = git.elasticbeanstalk.eu-west-1.amazonaws.com
us-west-1 = git.elasticbeanstalk.us-west-1.amazonaws.com
us-west-2 = git.elasticbeanstalk.us-west-2.amazonaws.com
ap-southeast-1 = git.elasticbeanstalk.ap-southeast-1.amazonaws.com
ap-southeast-2 = git.elasticbeanstalk.ap-southeast-2.amazonaws.com
sa-east-1 = git.elasticbeanstalk.sa-east-1.amazonaws.com
[alias "aws"]
push = !git aws.elasticbeanstalk.push
config = !git aws.elasticbeanstalk.config
createapplicationversion = !git aws.elasticbeanstalk.createapplicationversion
也许AWS Support可以确认上述内容。
此致
答案 1 :(得分:0)