微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

AWS Lambda尝试使用Java访问AWS Parameter Store

如何解决AWS Lambda尝试使用Java访问AWS Parameter Store

我有一个未与任何VPC关联的AWS Lambda。它正在尝试使用Java连接到AWS Parameter Store。我已经为参数存储添加了GetParameter,GetParameters和GetParametersByPath权限。

但是我仍然出现以下错误提示连接超时

{
  **"errorMessage": "Failed to connect to service endpoint: "**,"errorType": "com.amazonaws.SdkClientException","stackTrace": [
    "com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:100)","com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:70)","com.amazonaws.internal.InstanceMetadataServiceResourceFetcher.readResource(InstanceMetadataServiceResourceFetcher.java:75)","com.amazonaws.internal.EC2ResourceFetcher.readR
.
.
.
],"cause": {
    **"errorMessage": "connect timed out"**,** "errorType": "java.net.socketTimeoutException",**
    "stackTrace": [
      "java.net.PlainSocketImpl.socketConnect(Native Method)","java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSo

任何帮助都将被认可:)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。