For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

Edit an IBM Cloud cloud instance

Edit the settings of an IBM Cloud cloud instance in Cortex XDR, and apply the edits that require an updated Terraform template.

After you onboard an IBM Cloud account, you can change the instance name, the regions in scope, and the tags. Some edits take effect as soon as you save them. Other edits change resources in your IBM Cloud account, so you run an updated Terraform template and then apply the edit manually in Cortex XDR.

Edits that require a Terraform run

When you save an edit, Cortex XDR determines whether it requires an updated Terraform template.

Edit
Requires a Terraform run
Reason

Instance name

No

The name is stored only in Cortex XDR.

Regions (Modify Scope by Regions)

No

The region scope controls only which regions Cortex XDR scans.

Cloud tags

Yes

Terraform updates the tags on the service ID in your IBM Cloud account.

API key

Yes

Only Terraform can create a new API key. See Rotate the IBM Cloud API key.

If one edit includes a tags change and other changes, the whole edit requires a Terraform run.

Edit the cloud instance

Change the settings of the cloud instance in Cortex XDR.

  1. In Cortex XDR, select Settings → Data Sources & Integrations, and then open the IBM Cloud cloud instances.

  2. Right-click the cloud instance and select Configuration.

  3. Make your changes. The edit form has the following fields:

    • Scope: Read-only. IBM Cloud supports Account scope only.

    • Instance Name: Editable.

    • Account ID: Read-only. To monitor a different IBM Cloud account, onboard a new cloud instance.

    • API Key: Turn on to rotate the API key. For the full procedure, see Rotate the IBM Cloud API key.

    • Show advanced settings: Edit Scope Modifications and Cloud Tags.

  4. Click Save.

    • If the edit doesn't require a Terraform run, Cortex XDR applies it immediately, and you're done.

    • If the edit requires a Terraform run, Cortex XDR generates an updated Terraform template, and the cloud instance shows pending changes. Click Download Terraform, and then apply the edit.

Apply a tags edit

Run the updated template in the same directory as the original deployment, so Terraform uses the existing state file. Then apply the edit in Cortex XDR.

  1. Navigate to the original Terraform directory and extract the updated template files there. Overwrite the existing template files, but keep the Terraform state file.

  2. Set your IBM Cloud administrator API key as an environment variable:

  3. Apply the updated configuration:

  4. Review the plan, and then enter yes to approve it. A tags edit changes only the tags resource (ibm_resource_tag) on the service ID. It doesn't create, replace, or destroy any API key, custom role, or access policy. The api_key output is empty, because a tags edit doesn't create a key.

  5. In Cortex XDR, on the Cloud Instances page, right-click the cloud instance and select Manually apply edit.

  6. Leave the masked value in the API Key field. The IBM Cloud Account ID and Service ID fields are read-only.

  7. Click Connect. The cloud instance exits the pending changes state.

Cancel a pending edit

If you saved an edit but you don't want to apply it, revoke the pending changes. On the Cloud Instances page, click the Configuration pencil icon for the cloud instance, and under Manage unsaved changes, select Revoke pending changes. For more information, see Edit your onboarded CSP configuration.

If you already ran the updated template, complete the edit with Manually apply edit instead of revoking it.

Last updated

Was this helpful?