edit-icon download-icon

ALIYUN::ECS::SSHKeyPairAttachment

Last Updated: Jun 13, 2018

Description

Attaches an SSH key pair to specified ECS instances.

Syntax

  1. {
  2. "Type" : "ALIYUN::ECS::SSHKeyPairAttachment",
  3. "Properties" : {
  4. "InstanceIds" : List,
  5. "KeyPairName" : String
  6. }
  7. }

Properties

Name Type Required Update allowed Description Constraints
InstanceIds List Yes Yes The IDs of the ECS instances to attach the key pair. The IDs are separated by commas (,).
Only Linux instances are supported.
KeyPairName String Yes No The name of the SSH key pair. None.

Return values

Fn::GetAtt

None.

Examples

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "SSHKeyPairAttachment": {
  5. "Type": "ALIYUN::ECS::SSHKeyPairAttachment",
  6. "Properties": {
  7. "KeyPairName": "ssh_key_pair_v1",
  8. "InstanceIds": ['i-2zeiofnh20hj8fejemc6', 'i-2zebt3kfvxm28y9odint']
  9. }
  10. }
  11. }
  12. }
Thank you! We've received your feedback.