Nor*_*mal 5 amazon-s3 amazon-ec2 amazon-web-services
我正在尝试在我的 ec2 实例上设置 elasticsearch s3 快照。它失败并出现以下错误:
nested: NotSerializableExceptionWrapper[sdk_client_exception: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/
Run Code Online (Sandbox Code Playgroud)
如果我从该 ec2 实例查询元数据服务器,它会响应以下内容:
$ curl http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
block-device-mapping/
events/
hostname
identity-credentials/
instance-action
instance-id
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-keys/
reservation-id
security-groups
services/
Run Code Online (Sandbox Code Playgroud)
所以没有iam部分。
如何使 iam 部分可用于从 ec2 实例进行查询?
小智 5
如果您将角色附加到给定的 ec2 实例,则以下元数据 URI 将返回一些内容:
http://169.254.169.254/latest/meta-data/iam/security-credentials/
所以看起来您没有附加 IAM 角色。请核实。
归档时间: |
|
查看次数: |
5670 次 |
最近记录: |