Creating a new type of credentials for Amazon Ec2 Key Pair is convenient for AWS plugins and to execute aws related scripts.
- AmazonEc2KeyPairCredentials should have the following attributes (name to be confirmed)
- keypairName: String
- pem file: String
- AmazonEc2KeyPairCredentials should have a should have a BindingDescriptor @Extension so that the credentials-binding-plugin can store the file on disk during builds.
- AmazonEc2KeyPairCredentials is different from SSHUserPrivateKey in the sense that it does not hold a username or a passphrase