【发布时间】:2017-08-29 21:12:05
【问题描述】:
我正在尝试使用 java 从参数存储中读取 AWS 参数,我使用自定义加密密钥创建了参数。我在互联网上没有看到使用自定义 KMS 密钥的示例代码,以下是我目前拥有的正在工作的代码(这里我们使用默认的 KMS 密钥)。
AWSSimpleSystemsManagement client= AWSSimpleSystemsManagementClientBuilder.defaultClient();
GetParametersRequest request= new GetParametersRequest();
request.withNames("test.username","test.password")
.setWithDecryption(true);
这将给出默认 KMS 密钥的结果 如果我们有自定义 KMS 密钥,有谁知道如何处理这个问题
【问题讨论】:
-
您能否添加完整的示例以读取/修改 aws 参数存储,但没有得到任何工作示例
标签: java amazon-web-services amazon-ec2