我有一个未与任何 VPC 关联的 AWS Lambda。它正在尝试使用 Java 连接到 AWS Parameter Store。我为参数存储添加了 GetParameter、GetParameters 和 GetParametersByPath 权限。
但我继续收到以下错误的 CONNECTION TIMEOUT
{
**"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
任何帮助,将不胜感激 :)