Skip to content

Commit 0798f18

Browse files
author
AWS
committed
AWS EC2 Instance Connect Update: Adds support for ED25519 keys. PushSSHPublicKey Availability Zone parameter is now optional. Adds EC2InstanceStateInvalidException for instances that are not running. This was previously a service exception, so this may require updating your code to handle this new exception.
1 parent 4f04001 commit 0798f18

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS EC2 Instance Connect",
4+
"contributor": "",
5+
"description": "Adds support for ED25519 keys. PushSSHPublicKey Availability Zone parameter is now optional. Adds EC2InstanceStateInvalidException for instances that are not running. This was previously a service exception, so this may require updating your code to handle this new exception."
6+
}

services/ec2instanceconnect/src/main/resources/codegen-resources/service-2.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
{"shape":"InvalidArgsException"},
2727
{"shape":"ServiceException"},
2828
{"shape":"ThrottlingException"},
29-
{"shape":"EC2InstanceNotFoundException"}
29+
{"shape":"EC2InstanceNotFoundException"},
30+
{"shape":"EC2InstanceStateInvalidException"}
3031
],
3132
"documentation":"<p>Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html\">Connect to your Linux instance using EC2 Instance Connect</a> in the <i>Amazon EC2 User Guide</i>.</p>"
3233
},
@@ -47,7 +48,8 @@
4748
{"shape":"EC2InstanceNotFoundException"},
4849
{"shape":"EC2InstanceTypeInvalidException"},
4950
{"shape":"SerialConsoleSessionLimitExceededException"},
50-
{"shape":"SerialConsoleSessionUnavailableException"}
51+
{"shape":"SerialConsoleSessionUnavailableException"},
52+
{"shape":"EC2InstanceStateInvalidException"}
5153
],
5254
"documentation":"<p>Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-serial-console.html\">EC2 Serial Console</a> in the <i>Amazon EC2 User Guide</i>.</p>"
5355
}
@@ -75,6 +77,14 @@
7577
"documentation":"<p>The specified instance was not found.</p>",
7678
"exception":true
7779
},
80+
"EC2InstanceStateInvalidException":{
81+
"type":"structure",
82+
"members":{
83+
"Message":{"shape":"String"}
84+
},
85+
"documentation":"<p>Unable to connect because the instance is not in a valid state. Connecting to a stopped or terminated instance is not supported. If the instance is stopped, start your instance, and try to connect again.</p>",
86+
"exception":true
87+
},
7888
"EC2InstanceTypeInvalidException":{
7989
"type":"structure",
8090
"members":{
@@ -107,15 +117,14 @@
107117
"SSHPublicKey":{
108118
"type":"string",
109119
"max":4096,
110-
"min":256
120+
"min":80
111121
},
112122
"SendSSHPublicKeyRequest":{
113123
"type":"structure",
114124
"required":[
115125
"InstanceId",
116126
"InstanceOSUser",
117-
"SSHPublicKey",
118-
"AvailabilityZone"
127+
"SSHPublicKey"
119128
],
120129
"members":{
121130
"InstanceId":{

0 commit comments

Comments
 (0)