amazon-web-services - 即使凭证文件存在,AWS SDK 也会显示“配置文件不存在”
问题描述
如果credential_path"Profile file '$credential_path' does not exist"
包含任何隐藏文件夹(如"c:\\\\User\\\\.aws\\\\credentials"
.
如何让它发挥作用?
AWS SDK 检查文件是否存在
"Validate.validState(contentLocation.toFile().exists(), "Profile file '%s' does not exist.", contentLocation);"
可以java.nio.file
使用隐藏文件夹吗?
我使用 aws sdk 的测试代码:
ProfileFile profile = ProfileFile.builder()
.content(Paths.get("C:\\Users\\XXX\\.aws\\credentials"))
.type(ProfileFile.Type.CREDENTIALS)
.build();
解决方案
推荐阅读
- json - 在keras文本分类模型中预测时如何循环
- firebase - 使用 Auth 和 firestore 依赖项获取错误
- reactjs - 将 React 组件类实例传递给子组件以访问父组件的变量和方法是否安全?
- fortran - 英特尔编译器未定义对符号“for_inquire”的引用
- javascript - 为自定义 HTML 元素创建高度和宽度属性
- ffmpeg - FFMPEG - 剪辑视频导致剪辑时间更长
- python - 将 csv 文件转换为 json,浮点值周围没有引号
- javascript - 在 setState 中使用 [object Object] 初始化状态
- javascript - 如何缩小 JS 文件但保留所有车把胡须
- java - Spring data jpa SELECT ... FOR UPDATE Query 不适用于@query