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
- Add Trigger object to the flow, name it and press save
- Add and configure an Oracle Cloud Connect with Service set to Identity, configure: User, Key, Fingerprint, Tenancy and Region of the specified Identity
- 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>"
}
- 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
}
- Add and configure a ForEach action to loop over all retrieved regions.
- 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]%%
- Add and configure a ForEach action to loop over all retrieved compartments.
- 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]%%"
}
- 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]%%"
}
- Add and configure a ForEach action to loop over all retrieved Instances.
- An Asset Update would be connected to EC2 related Assets.
All above steps can be viewed below.