Tagging a Stack

Add tag metadata to a stack in Resource Manager. Tags are key-value pairs that you attach to resources to help you organize and track the resources across compartments.


This page describes how to tag an existing stack. You can also tag a stack when you create it.

If you have permissions to create a resource, you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Stacks.
    2. On the Stacks page, select the compartment that contains the stack that you want.
    3. Click the name of the stack that you want.
      The Stack details page opens.
    4. To add a tag, go to More actions, click Add tags, and enter the tag namespace, key, and value.
    5. To view existing tags, click the Tags tab and then click Defined tags or Free-form tags.
    6. To edit an existing tag, click the edit icon, update the value in the Edit tag dialog box, and then click Save.
    7. To remove a tag, click the edit icon and then click Remove tag.
  • Use the oci resource-manager stack update command and required parameters to tag a stack.

    oci resource-manager stack update [--defined-tags | --freeform-tags] <tags> [...]

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.

  • Use the UpdateStack operation to tag a stack.