Using non Administrator winrm user with amazon-ebs

25 views
Skip to first unread message

Gautam Singh

unread,
Nov 26, 2019, 3:52:54 PM11/26/19
to Packer
Hi Packer Community members!

I am creating Windows AMI using amazon-ebs builder and want to use packer winrm admin user different from default Administrator user for AWS instance.
The reason I want to do this is because I am running a program that is delivered from a different team that deletes the default Administrator user.
The program also restart the packer builder instance after which packer cannot connect back since the Administrator user is no more :( 
There are some other provisioners that needs to run after this program, which is not possible because packer cannot connect back.

What does it takes to use a separate winrm user from Adminitstrator? Thanks for your help.

Thanks,
-Gautam


Alvaro Miranda Aguilera

unread,
Nov 29, 2019, 8:35:39 PM11/29/19
to packe...@googlegroups.com
hi there

you can specify user and password, so your template should set Administrator somewhere.


So instead of Administrator you could use this non-Administrator user.

Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/59024c69-9df0-48cf-befd-ff4a649cecb9%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages