Updated on 2022-02-22 GMT+08:00

VPC.SecurityGroup

Element Description

A security group (a logical group) is a collection of access control policies for ECSs that have the same security protection requirements and are mutually trusted in a VPC.

Element Properties

Table 1 Property Description

Property

Mandatory

Descripiton

name

No

Security group name

Type: string

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

Value Constraint: Enter 1 to 64 characters. Only digits, letters, underscores (_), hyphens (-), and periods (.) are allowed.

Suggestion: Customize the value.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Inclusion

VPC.VPC

Return Value

Property

Type

Description

refID

string

Security group instance ID

refName

string

Security group instance name

Blueprint Example

tosca_definitions_version: cloud_tosca_version_1_0
inputs:
  sg-name:
    default: my-security-group
node_templates:
  my-sg:
    type: Cloud.VPC.SecurityGroup
    properties:
      name:
        get_input: sg-name
outputs:
  sg-id:
    value:
      get_attribute: [my-sg, refID]