Real-time visualization is only supported for vpc, subnet and virtual server resource types as of today.
AWS does not provide dedicated events when a vpc/subnet/vm is created. So MechCloud achieves this with the help of tags. It means you will need to create a vpc/subnet/vm with a tag named Mc-Asset-Name or add this tag to an existing vpc/subnet/vm so that these can be discovered by MechCloud automatically as soon as these are created.
This will generate events in the following formats for various resource types -
Note- Only mandatory attributes have been shown below for various events. You can remove all the attributes other than ones mentioned below (using eventbridge pipe etc) so that any sensitive information (e.g. account number) about your account is NOT posted to MechCloud.
Here are the steps to configure various things in AWS console to generate these events and then post these events to MechCloud endpoint described in the parent page of this page. There may be better ways to achieve this and so choose a mechanism which you feel is most suitable for achieving this. As far as you are posting the events in the above format and to a dedicated MechCloud endpoint, it should work irrespective of the way to achieve this. As better ways to achieve this may appear in future, you can use any generative AI tool (e.g. bard) to figure out a better mechanism to achieve this at any point in time.
Steps
1. Create an Event Bridge rule
Create an event bridge rule with the following details -
Define rule detail
Name - mc-tags-events
Event bus - default
Make sure that Enable the rule on the selected event bus is enabled.
Select Rule with an event pattern under Rule type.