java 设置 Intellij 和 AWS 环境以使用 DynamoDB

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33174362/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 21:18:15  来源:igfitidea点击:

Setting up Intellij and AWS environment to work with DynamoDB

javaamazon-web-servicesintellij-ideaamazon-dynamodbaws-sdk

提问by IThink

Lately I started to grow interest in AWS. Since I work with IntelliJ in my work place I would love it if I could keep on using it at home as well.

最近我开始对 AWS 产生兴趣。由于我在工作场所使用 IntelliJ,如果我也可以继续在家中使用它,我会很喜欢它。

Which leads me to my question - I installed IntelliJ and I would like to know what else should I install and configure in order to get my environment running. I have seen the following in a few posts regarding other topics -

这引出了我的问题 - 我安装了 IntelliJ,我想知道我还应该安装和配置什么才能让我的环境运行。我在一些关于其他主题的帖子中看到了以下内容 -

AWS Manager

AWS 管理器

SDK For Java

Java 开发工具包

Am I missing anything? Am I installing something un-needed? Any configuration I should do? Any other tips you would like to share with me?

我错过了什么吗?我是否安装了不需要的东西?我应该做任何配置?您想与我分享任何其他提示吗?

Thanks!

谢谢!

回答by IThink

Take a look at this document here - http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html

在此处查看此文档 - http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html

The correct name for the secret key variable is AWS_SECRET_KEY.

密钥变量的正确名称是 AWS_SECRET_KEY。

Using CLI limits you to work with a single Amazon account. And if that is not the case with you, you should not use CLI.

使用 CLI 会限制您使用单个 Amazon 帐户。如果您不是这种情况,则不应使用 CLI。

Options 1 and 2 allows to set these credentials per project with different AWS accounts outside the project codebase. Go for those options instead.

选项 1 和 2 允许使用项目代码库之外的不同 AWS 账户为每个项目设置这些凭证。而是选择这些选项。