Updated on 2022-02-22 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

Mandatory

Descripiton

bucketName

Yes

Bucket name

Type: string

Value Description: Customize the value, for example, my-bucket.

Value Constraint: {u'regex': u'^[a-z]([-a-z0-9]*[a-z0-9])?$', u'min_length': 3, u'max_length': 63}

Suggestion: Customize the value.

name

Yes

Key pair name

Type: string

Value Description: Customize the value, for example, my-key.

Value Constraint: {u'regex': u'^[-_a-zA-Z0-9]*$', u'min_length': 1, u'max_length': 63}

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: cloud_tosca_version_1_0
node_templates:
  obsbozli:
    type: Cloud.OBS.Bucket
    properties:
      acl: private
  ecskp4ep:
    type: Cloud.ECS.KeyPair
    properties:
      name:
        get_input: ecskp4ep_name
      bucketName:
        get_reference: obsbozli
    requirements:
      - bucketName:
          node: obsbozli
inputs:
  ecskp4ep_name:
    description: keypair name
    label: ''