Oracle Cloud Instances Asset Discovery

In this guide we will showcase how to connect and retrieve EC2 instances from a given AWS account, then use Asset Update to store them within the Asset A-Ops application

Download template

Requirements

  • Asset Integration
  • Oracle Cloud Integration

Steps

  1. Add Trigger object to the flow, name it and press save
  2. Add and configure an Oracle Cloud Connect with Service set to Identity, configure: User, Key, Fingerprint, Tenancy and Region of the specified Identity
  3. Add and configure an Oracle Cloud Function object to the flow, specifying the Function to be: list_region_subscriptions. Additionally, adding the Arugments of a tenancy id is required:
{
  "tenancy_id": "<tenancy ID>"
}
  1. Add and configure an Oracle Cloud Function object to the flow, specifying the Function to be: list_compartments. Additionally, adding the arguments of the compartment ID and as shown below is required:
{
  "compartment_id": "%%var[local][root_compartment_id]%%",
  "compartment_id_in_subtree": true
}
  1. Add and configure a ForEach action to loop over all retrieved regions.
  2. Add and configure an Oracle Cloud Connect with Service set to Compute, configure: User, Key, Fingerprint, Tenancy and Region to be dynamic based on each Region identified: %%data[event][value]%%
  3. Add and configure a ForEach action to loop over all retrieved compartments.
  4. Add and configure an Oracle Cloud Function object to the flow, specifying the Function to be: list_vnic_attachments. Additionally, adding the arguments of the compartment ID and as shown below is required:
{
  "compartment_id": "%%data[event]%%"
}
  1. Add and configure an Oracle Cloud Function object to the flow, specifying the Function to be: list_instances. Additionally, adding the arguments of the compartment ID and as shown below is required:
{
  "compartment_id": "%%data[event]%%"
}
  1. Add and configure a ForEach action to loop over all retrieved Instances.
  2. An Asset Update would be connected to EC2 related Assets.

All above steps can be viewed below.

Preview