You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
ISSUE #423: Support using EC2-generated password as the WinRM password
Adds a winrm_info provider capability to support using the EC2 GetPasswordData API as a means of getting the WinRM password.
If the winrm.password is set to :aws, go fetch the AWS password data for the machine, decrypt the user-specified private key, and set it as the winrm.password
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,41 @@ Vagrant.configure("2") do |config|
279
279
end
280
280
```
281
281
282
+
### Windows WinRM passwords
283
+
284
+
Want to use the EC2-generated Administrator password as the WinRM password for your Windows images? Use `:aws` as the WinRM password, and it will be fetched and decrypted using your private key.
285
+
286
+
```ruby
287
+
Vagrant.configure("2") do |config|
288
+
# ... other stuff
289
+
290
+
config.vm.communicator ="winrm"
291
+
config.winrm.username ="Administrator"
292
+
293
+
config.vm.provider "aws"do |aws, override|
294
+
# Indicate that the password should be fetched and decrypted from AWS
295
+
override.winrm.password =:aws
296
+
297
+
# private_key_path needed to decrypt the password
298
+
override.ssh.private_key_path ='~/mykey.pem'
299
+
300
+
# keypair name corresponding to private_key_path
301
+
aws.keypair_name ="mykey"
302
+
303
+
# Use a security group that allows WinRM port inbound (port 5985)
0 commit comments