Skip to main content
Skip table of contents

Importing Tags for AWS Discovery



Purpose

This document describes how to import tags for AWS discovery.

Introduction

Tags are key and value pairs that act as metadata for organizing your AWS resources. With most AWS resources, you have the option of adding tags when you create the resource. 

Based on the AWS instance tags and the External Tag Keys configuration, AWS tags will be imported to Asset with some rules.

Importing Tags from AWS

To import tags:

  1. Go to Scan Configurations > Report Settings.
  2. It contains External tags section for CLOUD DISCOVERY template.
  3. When the toggle switch in External Tags is in its off (grey) position, the import function is disabled. 



  4. When the toggle switch is in its on (blue) position we can enter tag keys in the text field section.



  5. When entering a non-existing tag key, it adds that key into text field section so that it can be selected through the auto-completion.

  6. After saving and going back to Report Settings page, the tags setting are now visible as blue buttons.

Expected Result

Depending on the discovered AWS instance, the external tags should be imported to the newly created or found Asset(s).

Based on the AWS instance tags and External Tag Keys configuration, it will update the tags to Asset with some rules:

  • In case Import External Tags is False
    (Toggle Switch OFF), then no AWS tags are imported.
  • In case Import External Tags is True
    (Toggle Switch ON).
    • If users do not have tag permission, then no AWS tags are imported and a warning message is displayed in the scan result.
    • If External Tag Keys text field empty, all AWS tags are imported.
    • Only the AWS tags that match case-sensitive with the key in External Tag Keys text field are imported.
    • In case imported tags do not exist, then these tags are created. Otherwise, the existing tags will be reused.

Example 1

  1. Edit external tags

  2. Then run the scan (Asset does not exist yet)

  3. Results:

    • Scan finished with an asset

    • A new asset is created

    • A new tag Location:HoangCau was created and linked to Asset. We have 3 externalKeys: department, dev, Location, but there is only Location key is matched with AWS tags

Example 2

  1. Update the external tags section by adding one more key: location.

  2. Run the scan again, and check the result: no more tag is created but the existing tag: location:DongDa was linked to the asset.


Example 3

  1. Unlinked all tags from the above asset.

  2. Edit the External tags section by disabling Import external tags from the environments target by discovery.

  3. Run the scan again and check the result. No tags linked to the asset.

Example 4

  1. Edit the external tags section by enabling Import external tags from the environments target by discovery again.

  2. Run the scan again and check the result. Two tags were linked again.

Example 5

  1. Configure AWS identity to not allow tags permissions. For example, elasticloadbalancing:DescribeTagscloudfront:ListTagsForResource.
  2. Enable Import external tags from the environments target by discovery.
  3. Running the scan now produces an Issues warning message as seen in the screenshot below:







Copyright

© 2024 Outpost24® All rights reserved. This document may only be redistributed unedited and unaltered. This document may be cited and referenced only if clearly crediting Outpost24® and this document as the source. Any other reproduction and redistribution in print or electronically is strictly prohibited without explicit permission.

Trademark

Outpost24® and OUTSCAN™ are trademarks of Outpost24® and its affiliated companies. All other brand names, product names or trademarks belong to their respective owners.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.