AMI Creation of EC2 window server

1

Hi Team,

I have some issue when I launch the window server from AMI.

I have schedule to create AMI on daily basis but when I launch the server from AMI then password is not generated and showing the password is not available.

Could you please help me to what setting do I need to server?

Thanks, Anuj

AnujG
질문됨 일 년 전259회 조회
1개 답변
0

Hello,

I have some questions as well some guidance. Questions: is this a AWS Windows AMI or an AMI you have created?

Please see https://repost.aws/knowledge-center/ec2-windows-password-not-available-error for the password not available error. One of the common issues is when using a self-backed AMI where the initial password was changed. All other instances from this AMI will not have a random password. Here you find another way to reset the password: https://repost.aws/knowledge-center/reset-admin-password

But from what I understand you ideally wants to be able to get a password on launch. What you could do is for example to set the password on launch through UserData https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html one example script is https://gist.github.com/tomfanning/10be8decc97533a84d712db9e5862843 (not tested use it at your own risk). Ideally on a large scale setup you would like this password to be random and stored safely for example in SSM or Secrets Manager.

Thanks

profile picture
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인