Updated on 2023-12-13 GMT+08:00

ECS.KeyPair

Element Description

ECS.KeyPair is used to create a key pair for remote login authentication. To ensure security, you are advised to use the key authentication mode when logging in to an ECS.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

bucketName

Yes

KeyPair bucket name

Type: string

Value Description: Supports customization, for example, my-bucket.

Suggestion: Customize the value.

name

Yes

KeyPair name

Type: string

Value Description: Supports customization, for example, my-key.

Suggestion: Customize the value.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

OBS.Bucket

Return Value

Property

Type

Description

refName

string

Key pair name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  obsbozli:
    type: HuaweiCloud.OBS.Bucket
    properties:
      acl: private
  ecskp4ep:
    type: HuaweiCloud.ECS.KeyPair
    properties:
      name:
        get_input: ecskp4ep_name
      bucketName:
        get_reference: obsbozli
    requirements:
      - bucketName:
          node: obsbozli
inputs:
  ecskp4ep_name:
    description: keypair name
    label: ''