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
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,23 @@ Vagrant.configure("2") do |config|
279
279
end
280
280
```
281
281
282
+
### 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
+
override.winrm.password =:aws
295
+
end
296
+
end
297
+
```
298
+
282
299
## Development
283
300
284
301
To work on the `vagrant-aws` plugin, clone this repository out, and use
0 commit comments