我正在尝试在我的 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/
如果我从该 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/
所以没有iam部分。
如何使 iam 部分可用于从 ec2 实例查询?
如果您将角色附加到给定的 ec2 实例,则以下元数据 URI 将返回一些内容:
http://169.254.169.254/latest/meta-data/iam/security-credentials/
所以您似乎没有附加 IAM 角色。请核实。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)