Mods

Policy: OCI > IAM > Policy > Freeform Tags > Template

The template is used to generate the keys and values for OCI IAM policy.

Freeform tags not defined in Policy Freeform Tags Template will not be modified or deleted. Setting a tag value to undefined will result in the tag being deleted.

See Tags for more information.

Targets

This policy targets the following resource types:

Primary Policy

This policy is used with the following primary policy:

Controls

Setting this policy configures this control:

Policy Specification

Default template
{%- if $.defaultTags.value == null or $.defaultTags.value | length == 0 %}[]{% else %}{{ $.defaultTags.value | dump | safe }}{% endif %}
Default template input
- |
{
tenancy {
turbot {
id
}
}
}
- |
{
defaultTags: policyValue(uri:"tmod:@turbot/oci#/policy/types/defaultFreeformTagsTemplate" resourceId: "{{ $.tenancy.turbot.id }}") {
value
}
}
Examples [YAML]
  • Environment: Production
    Owner: Team Name
    
  • - CostCenter: IT-001
    - Environment: Development
    

Category

In Your Workspace

Developers