AWS: Can’t get a window password when using custom AMIs.

Happy Live
2 min readApr 13, 2020

Hi everyone,

Today I must use load balance a new instance when I create new instance ec2 from AMIs i have a problem about “Password not available yet."

What!!!!!!!!!!!!!!!!

Ok. I try to research how to access the new instance when to use custom AMIs the password is the same instance the prototype.

anyway, How to get a password for a new instance.

I research again i found it.

This is a step to get a new password for the new instance

Step 1: Before creating AMIs
1. Remote to a window in the prototype instance
2. From the Windows Start menu

  • Windows Server 2008 through Windows Server 2012 R2, open EC2ConfigService Settings, and then choose the Image tab.
  • Windows Server 2016 or later, open EC2 Launch Settings.

3. For Administrator Password, choose Random.
4. Choose Shutdown with Sysprep and click yes

5. Create new AMIs.

When lanch a new AMIs you can get a random password from AWS.

*if you use NVMe storage (ex r5d, c5d) the new drive is removed when shutdown please backup NVMe storage drive before creating new AMIs.

References

--

--