ec2-instance-connect-2018-04-02.examples.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "SendSSHPublicKey": [
  5. {
  6. "input": {
  7. "AvailabilityZone": "us-west-2a",
  8. "InstanceId": "i-abcd1234",
  9. "InstanceOSUser": "ec2-user",
  10. "SSHPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3FlHqj2eqCdrGHuA6dRjfZXQ4HX5lXEIRHaNbxEwE5Te7xNF7StwhrDtiV7IdT5fDqbRyGw/szPj3xGkNTVoElCZ2dDFb2qYZ1WLIpZwj/UhO9l2mgfjR56UojjQut5Jvn2KZ1OcyrNO0J83kCaJCV7JoVbXY79FBMUccYNY45zmv9+1FMCfY6i2jdIhwR6+yLk8oubL8lIPyq7X+6b9S0yKCkB7Peml1DvghlybpAIUrC9vofHt6XP4V1i0bImw1IlljQS+DUmULRFSccATDscCX9ajnj7Crhm0HAZC0tBPXpFdHkPwL3yzYo546SCS9LKEwz62ymxxbL9k7h09t"
  11. },
  12. "output": {
  13. "RequestId": "abcd1234-abcd-1234-abcd-1234abcd1234",
  14. "Success": true
  15. },
  16. "comments": {
  17. "input": {
  18. "AvailabilityZone": "The zone where the instance was launched",
  19. "InstanceId": "The instance ID to publish the key to.",
  20. "InstanceOSUser": "This should be the user you wish to be when ssh-ing to the instance (eg, ec2-user@[instance IP])",
  21. "SSHPublicKey": "This should be in standard OpenSSH format (ssh-rsa [key body])"
  22. },
  23. "output": {
  24. "RequestId": "This request ID should be provided when contacting AWS Support.",
  25. "Success": "Should be true if the service does not return an error response."
  26. }
  27. },
  28. "description": "The following example pushes a sample SSH public key to the EC2 instance i-abcd1234 in AZ us-west-2b for use by the instance OS user ec2-user.",
  29. "id": "send-ssh-key-to-an-ec2-instance-1518124883100",
  30. "title": "To push an SSH key to an EC2 instance"
  31. }
  32. ]
  33. }
  34. }