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
This is for example doable in the Powershell bindings (using Get-EC2PasswordData), but not in the Ruby SDK. Using EC2.client.get_password_data can be used to get the encrypted password, but there's no option to decrypt it, even if you've got the PEM...
The text was updated successfully, but these errors were encountered:
# pemPath is the file path of your PEM file# instance is an AWS::EC2::Instanceec2=AWS::EC2.newencrypted_password=ec2.client.get_password_data(:instance_id=>instance.instance_id).password_dataprivate_key=OpenSSL::PKey::RSA.new(File.read(pemPath))decoded=Base64.decode64(encrypted_password)password=private_key.private_decrypt(decoded)
Sorry for the very slow response. We are not currently doing feature work on the v1 Ruby SDK. We do accept pull requests, but we are currently focused on the v2 SDK (https://github.com/aws/aws-sdk-core-ruby). I do think this could be a helpful feature to add.
This is for example doable in the Powershell bindings (using Get-EC2PasswordData), but not in the Ruby SDK. Using EC2.client.get_password_data can be used to get the encrypted password, but there's no option to decrypt it, even if you've got the PEM...
The text was updated successfully, but these errors were encountered: