Creating Attributes

Identify the key runtime attributes that Oracle Cloud Stack should monitor on stacks that are created from your template.

For an introduction, see What are Attributes.

  1. Access the Oracle Cloud Stack console, and then edit your template.
  2. To the right of Attributes, click Add attribute Plus icon.
  3. Enter a name for the attribute.
  4. Optional: Enter a label and a description for the attribute.
  5. Edit the value, and use the GetAtt function to retrieve the value of a resource’s attribute. Enter the resource name and the attribute name as a YAML sequence.

    Format: 'Fn::GetAtt': [resourceName,attribute]

    For example: 'Fn::GetAtt': [dbresource,connectionString]

    Refer to the REST API documentation for this type of cloud resource in order to identity its available attributes. See List of Resource Types.

    The attribute argument supports a dot notation in order to access nested attributes within a JSON response payload. For example, components.mysql.attributes.CONNECT_STRING.value.

  6. Click Apply Changes.
  7. Repeat from step 2 for each additional attribute that you want to create.
  8. Click Save the current template Save icon.