无法将应用程序上传到Amazon S3
使用Eclipse,最新版本,最新的Java AWS SDK我可以突然不再部署到elasticbeanstalk(在服务器上运行,AWS /部署到AWS Elastic Beanstalk)。
Using Eclipse, latest version, latest Java AWS SDK I can suddenly no longer deploy to elasticbeanstalk (neither "Run on Server" nor AWS/Deploy to AWS Elastic Beanstalk).
我可以导出一个war文件,并通过beanstalk web控制台上传w / o问题。
它曾经工作了几个月,我没有改变任何东西,凭证确定。
我得到的错误信息是:
I can export a war file and upload via beanstalk web console w/o problems. It used to work for months and I didn't change anything, credentials are ok. The error message I get is:
无法将应用程序上传到Amazon S3:AWS身份验证需要
a有效日期或x-amz-date头(服务:Amazon S3;状态码:
403;错误代码:AccessDenied;请求ID:xxx)
Unable to upload application to Amazon S3: AWS authentication requires a valid Date or x-amz-date header (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: xxx)
Bump?搜索无处不在...
任何帮助真的欢迎!
Bump? Searched everywhere... Any help truly welcome!
我遇到同样的问题。我的解决方案:
I was experiencing the same issue. My solution:
- 删除所有aws首选项(Windows:user dir .aws)
- 卸载AWS插件(帮助 - >关于 - >安装详细信息)。在已安装的软件选项卡上,突出显示所有AWS插件,然后选择卸载。
- 然后,从以下位置重新安装所需的插件: http://aws.amazon.com/eclipse ,一切都很好。
- Remove all aws preferences (Windows: user dir .aws)
- Uninstall the AWS Plugins (Help->About->Installation Details). On the installed Software tab, highlight all AWS plugins and select uninstall.
- I then Reinstalled required plugins from: http://aws.amazon.com/eclipse and all was well again.
在卸载和重新安装之间重新启动eclipse)
(There were restarting of eclipse between uninstall and reinstall too)
无需删除环境并创建新的环境。
No need to remove the environments and create new ones.