This repository was archived by the owner on Dec 19, 2017. It is now read-only.
Add GetPasswordData operation for EC2 instances#244
Open
jen20 wants to merge 1 commit intomitchellh:masterfrom
Open
Add GetPasswordData operation for EC2 instances#244jen20 wants to merge 1 commit intomitchellh:masterfrom
jen20 wants to merge 1 commit intomitchellh:masterfrom
Conversation
This operation allows the user to obtain a copy of the auto-generated Administrator password for an instance running Windows, encrypted using the key-pair specified on instance launch.
Author
|
@mitchellh Is this likely to be accepted given the new libs? packer-community/packer-windows-plugins#39 depends on it - I can likely work around this if necessary though. |
|
Hi @mitchellh, is this likely to be merged anytime soon? Looking to follow up on the above PR for Packer Windows Plugins. If not, we'll work on another strategy. |
|
+1 |
Author
|
You can now do this with the official AWS SDK: resp, err := ec2conn.GetPasswordData(&ec2.GetPasswordDataInput{
InstanceId: aws.String("instanceId"),
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This operation allows the user to obtain a copy of the auto-generated Administrator password for an instance running Windows, encrypted using the key-pair specified on instance launch.
A test has been added using the example from the documentation, but with the response updated to reflect the actual time format passed in current usage.
Example usage
Example output (password available):
Example output (password not yet available):