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.
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.
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.
In Cortex XDR, select Settings → Data Sources & Integrations, and then open the IBM Cloud cloud instances.
Right-click the cloud instance and select Configuration.
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.
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.
Navigate to the original Terraform directory and extract the updated template files there. Overwrite the existing template files, but keep the Terraform state file.
Set your IBM Cloud administrator API key as an environment variable:
Apply the updated configuration:
Review the plan, and then enter
yesto 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. Theapi_keyoutput is empty, because a tags edit doesn't create a key.In Cortex XDR, on the Cloud Instances page, right-click the cloud instance and select Manually apply edit.
Leave the masked value in the API Key field. The IBM Cloud Account ID and Service ID fields are read-only.
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?
