Cortex connects to many third-party vendors whose system interfaces frequently change. As a result, integration behavior or configuration steps may shift without notice. If you encounter unexpected issues, check with your system administrator or refer to the vendor’s documentation for the most current information. Additionally, integration sync times vary and are subject to scheduling overrides and timing variance.
Keep in mind
When importing from AWS, Cortex replaces non-alphanumeric characters in entity names with a space. For example,resource_1 becomes resource 1.
For the Cortex tag, Cortex replaces non-alphanumeric characters with - and lowercases the letters. If multiple special characters appear together in a tag, Cortex replaces the group of characters with only one -. For example, mY_e%ntity#$_tag becomes my-e-ntity-tag.
Importing an entity from AWS
Cortex gives you two ways to import entities from AWS: automatically or manually. Turn on auto import and Cortex creates an entity for every resource it discovers in the Cloud Control types you’ve selected, then keeps them in sync as your AWS environment changes. Import manually instead if you’d rather pick exactly which discovered resources land in your catalog and set details like ownership and repository as you go. If an entity already exists in Cortex, you can connect it to specific AWS resources by adding anx-cortex-infra block to its YAML.
Prerequisites
- Ensure that Cortex only pulls the cloud control types you want it to:
- From the main sidebar, select Integrations.
- Locate AWS, then click Settings.
- Select the Integration settings tab.
- From the Cloud control types dropdown, select the types you want Cortex to discover.
- When you turn on auto-import for AWS, Cortex imports these types automatically.
- To remove an auto-imported cloud control type, click the X next to its name, then click Save cloud control types.
- Click Save cloud control types.
Expand to see which cloud control types are NOT supported
Expand to see which cloud control types are NOT supported
Automatically importing AWS entities
Users with theManage Integrations permission can enable auto import of AWS resources.
Follow the steps below to configure automatic import from AWS. If you don’t want Cortex to auto import AWS resources, you can manually import them.
- From the main sidebar, click your avatar in the bottom-left corner.
- Select Settings.
- From the Settings menu, locate the Workspace section, then expand Entities.
- Select General.
-
Under Entity settings, toggle on Auto import from AWS, Azure, and/or Google Cloud.

Limiting discovery to specific regions
By default, Cortex searches for resources across all AWS regions, but you can limit that to specific regions.- From the main sidebar, select Integrations.
- Locate AWS, then click Settings.
- Select the Integration settings tab.
-
Scroll to Regions, then select one or more regions from the dropdown.
.png?fit=max&auto=format&n=pbVnLtaKpBTlBN5p&q=85&s=c72ac7b6ae5106ac9820765dec6db767)
- Click Save regions. Cortex will now only search across the regions you specified.
Manually importing AWS entities
Follow the steps below to manually import from AWS. If you don’t want to import manually, you can automatically import them.- From the main sidebar, expand Catalogs, then select All entities.
- In the upper-right corner, click Import entities.
- Select Import discovered entities.
- Select AWS. The Select entities to import page is displayed.
- A list of entities is displayed. Select the checkboxes next to the entities you want to import. Use the search bar to find entities by name, or click the Filter icon in the upper-right corner of the results list to filter by entity type.
- In the bottom-right corner, click Next step. The Edit details page is displayed.
- Configure the following:
- From the Type drop-down menu, select Service.
- In the Details section:
- Under Entity name, enter a name for the entity (required).
- The Cortex tag field is auto-populated based on the name of the entity (required). It’s a unique identifier for the entity. This is also known as the
x-cortex-tag. - Under Description, enter a description of the entity to help others understand its purpose.
- From the Groups drop-down, select a group or groups to segment the entity.
- In the Repository section:
- From the Provider drop-down menu, select the repo provider.
- From the Alias drop-down menu, select the alias of the connected provider account that has access to the repository.
- From the Repository drop-down menu, select the repo associated with the entity. If you don’t see it listed, click Refresh repositories to pull in the latest list.
- Under Basepath, enter the subdirectory within the repo where the entity’s code lives. Leave blank if the entity occupies the entire repo.
- In the Owners section, define ownership for the entity. Ownership can be assigned to either teams or individual users. It’s recommended to select team owners to keep the ownership information up to date through any future personnel changes. To add a team or teams, click Add in the Teams area. To add an individual user or users, click Add in the Users area.
- Cortex may recommend owners based on repository activity. You can accept or reject the recommendations.
- In the Links section, click Add to add links to external documentation, such as runbooks, docs, logs, or custom categories.
- In the Slack channels section, click Add to link a Slack channel to the entity. If enabled, you’ll receive notifications about the entity in the selected Slack channel.
- In the Parents section, select a parent domain or domains from the drop-down menu. This is where you configure the hierarchy for your entity, which can be visualized in the relationship graph.
- In the Dependencies section, click Add entity to select an entity or entities that this entity depends on. These can be visualized in the relationship graph.
- If you selected more than one entity, click Next entity in the bottom-right corner of the page.
- Click Confirm import. The entity is imported into Cortex.
Editing an entity via its descriptor
To connect a Cortex entity to one or more AWS resources, add thex-cortex-infra block to the entity’s YAML. For certain AWS resource types, Cortex displays those AWS entities’ metadata on the Cortex entity page.
Example
Connecting multiple ECS services to a single entity
To connect a Cortex entity to multiple ECS services, use one of the formats below, depending on whether you’re using Cloud Control resource types.
Example
Using the legacy ECS format
If you’re not using Cloud Control types, or you imported your entity before Cortex supported Cloud Control types, use the format below.
Example
Discovery audit
Cortex pulls recent changes from your AWS environment into the discovered entities list, where you can find:- New entities in AWS that haven’t been imported into your Cortex catalog. These are tagged New AWS Resource.
- Entities in the catalog that no longer exist in AWS. These are tagged AWS Resource Not Detected.

Relationships, ownership, and dependencies for AWS entities
Configuring tag-based auto-linking for AWS
You can configure any relationship type to automatically create relationships between AWS resources and other Cortex entities based on matching AWS tag values. This is the recommended way to connect AWS resources to domains, services, or custom entities for Scorecard reporting.The Auto-create relationships from integration tags section only appears when at least one AWS-backed entity type is selected as the source and/or destination.
- From the main sidebar, expand Catalogs, then select All entities.
- Select the Relationship types tab.
- Locate the relationship type you want to configure, then click the pencil icon. You can also create a new relationship type.
- Scroll to the Auto-create relationships from integration tags section.
- From the Provider drop-down menu, select AWS.
- Configure the Source tag key by doing one of the following:
- Enter the AWS tag key on the source entity (e.g.
cortex-entity-tag), OR - Toggle on Cortex provided tag to use Cortex’s standardized managed tag key.
- Enter the AWS tag key on the source entity (e.g.
- Configure the Destination tag key by doing one of the following:
- Enter the tag key on the destination entity (e.g.
AWS-tag-parent), OR - Toggle on Cortex provided tag to use Cortex’s standardized managed tag key.
- Enter the tag key on the destination entity (e.g.
- Click Save (or Create if it’s a new relationship type).
Once a relationship type is saved with integration-backed auto-creation configured, this setting cannot be changed. To modify it, delete the relationship type and create a new one.
- Tag your AWS resources with the domain they belong to (e.g. a
domaintag with the domain’s Cortex tag as the value). - Create or open a relationship type with AWS resources as the source and domains as the destination.
- In the Auto-create relationships from integration tags section, set the source tag key to
domainand the destination tag key to the corresponding identifier on your domain entities. - Click Save. Cortex creates the relationships automatically.
Discovering dependencies automatically
Cortex automatically discovers dependencies between your services and resources by scanning for AWS resources tagged with specific keys. By default, a service depends on any Cortex resource whose corresponding AWS resource has a tag where the key isservice and the value matches the service’s Cortex tag.
Cortex syncs AWS tags (dependencies) daily at 8 a.m. UTC.
To manually refresh tags:
- From the main sidebar, expand Tools, then select Relationship graphs.
-
In the upper-right corner, click the overflow menu icon, then select Sync dependencies.

service as the key name.
To specify a tag name in Cortex:
- From the main sidebar, select Integrations.
- Locate AWS, then click Settings.
- Select the Integration settings tab.
-
Scroll to Dependencies sync from AWS, then select one or more tags from the dropdown. Note that an
ANDoperator is used when you select multiple tags; the resource needs to have all specified tags in order to be recognized by Cortex.
- Click Save dependency tag keys.
Using key/value pairs in the entity descriptor for dependency discovery
You can also define explicit tag key/value pairs in thex-cortex-dependency block for AWS dependency discovery. Instead of matching on service tags, Cortex matches a service to any AWS resource whose tags match the key/value pairs you define in the service’s x-cortex-dependency block.
For example, the service below depends on any AWS resource tagged with key service and value checkout-service, key team and value checkout-team, or a resource created by the CloudFormation stack checkout-service-prod.
Auto-creating AWS account entities
Users with theManage Integrations permission can configure the auto-creation of AWS account entities.
When enabled, Cortex automatically creates an entity for each AWS account connected to your integration and links it to its AWS resources through a built-in, Cortex-managed relationship.
The Auto import from AWS, Azure, and/or Google Cloud setting must be toggled on prior to auto-creating AWS account entities.
- From the main sidebar, select Integrations.
- Locate AWS, then click Settings.
- Select the Integration settings tab.
-
Scroll to Accounts as entities, then toggle on Import AWS accounts as entities.

- Cortex creates an AWS Account entity for each account configured in Cortex.
- Each AWS resource is automatically linked to its parent account through a Cortex-managed relationship.
- From the main sidebar, expand Catalogs.
- Select All entities, then select the Entity types tab.
-
Search for AWS account.

- Select an entity type, then select an entity.
-
From the Catalog menu, select the Relationships tab.

Discovering ownership for AWS
Cortex can automatically discover ownership for your AWS resources. By default, Cortex looks for theowner tag, but you can customize the tag key name.
Cortex syncs ownership from AWS daily at 6 a.m. UTC.
- From the main sidebar, select Integrations.
- Locate AWS, then click Settings.
- Select the Integration settings tab.
-
Scroll to Ownership sync from AWS, then toggle on Enable ownership sync.

-
Optionally, customize the tag key name:
- From the Select tags dropdown, select one or more tags.
- Click Save ownership tag keys.