Amazon web services 为什么可以';我不能从AWS获取windows密码吗?

Amazon web services 为什么可以';我不能从AWS获取windows密码吗?,amazon-web-services,amazon-ec2,Amazon Web Services,Amazon Ec2,我在AWS上启动了一个windows EC2实例,但无法获取登录密码。即使在启动服务器一天后,我仍然会收到此警告消息 Password not available yet. Please wait at least 4 minutes after launching an instance before trying to retrieve the auto-generated password. Note: Passwords are generated during the launch

我在AWS上启动了一个windows EC2实例,但无法获取登录密码。即使在启动服务器一天后,我仍然会收到此警告消息

Password not available yet.
Please wait at least 4 minutes after launching an instance before trying to retrieve the auto-generated password.

Note: Passwords are generated during the launch of Amazon Windows AMIs or custom AMIs that have been configured to enable this feature. Instances launched from a custom AMI without this feature enabled use the username and password of the AMI's parent instance.
我还尝试了以下命令行:

$ aws --profile ie ec2 get-password-data --instance-id i-xxxxx --priv-launch-key my.pem  --region ap-southeast-2
但它返回一个空密码:

{
    "InstanceId": "i-xxxx",
    "PasswordData": "",
    "Timestamp": "2019-08-05T23:12:04.000Z"
}
那么我如何获得这个EC2实例的密码呢? 我已尝试停止/启动该实例,但没有任何帮助


一个可能的原因是该实例是从定制的AMI启动的,但我也不知道AMI的密码。有办法重置密码吗?

EC2Config可能已禁用。由此导致的控制台输出的空字符串。这可能是EC2Config服务的问题;配置错误的配置文件或Windows无法正确引导

为了恢复,我想说,试试你在用来创建AMI的机器上使用的密码,如果它不是定制的AMI,那就换一个。如果你能分享AMI ID,我会更有帮助


此外,如果您希望恢复服务器的EBS卷上的数据,您可以遵循

我想知道停止/启动实例是否有帮助?否则,启动一个新的。您可以使用“像这样启动”使其更简单。我已经尝试过了,但没有帮助您在创建ec2实例时是否为密码加密附加了密钥?您是否能够从AWS控制台获取密码?您是否使用自定义AMI启动了此实例?是的,它是自定义AMI。该实例是从自定义AMI启动的,但我记不起AMI密码。我刚刚遇到了相同的问题,使用用于创建AMI的机器的密码对我有效。