Cloud asset tracking

Hi there,

Does anyone know of any projects or simple lambdas which might be able to run say once a month via event bridge schedule and list our all your sns, sqs, s3, ec2, albs, rds, lambda, dynamodb, vpc, transit gateway, vpn resources (etc) and save them as CSV to an s3 bucket?

AWS has this blog post [1] but I don’t need to track as its created rather take a snapshot in time as to what was deployed in my dev, staging and production accounts?

I’m sure solutions I perhaps don’t know what this is actually called to correctly google it.

[1] https://aws.amazon.com/blogs/mt/building-a-fully-automated-dow-jones-asset-tracking-system-on-aws/

Workload Discovery?

https://aws.amazon.com/solutions/implementations/workload-discovery-on-aws/

If you want something simple you could use the Cloud Control API in a lambda to write to an S3 bucket. https://aws.amazon.com/blogs/aws/announcing-aws-cloud-control-api/

I wrote an open source tool called grucloud that can also list the asset inventory, check it out at www.grucloud.com

There both do something like what you’re looking for…
https://github.com/cloudquery/cloudquery
https://github.com/openraven/magpie

AWS Config

Do you have a lot of ephemeral resources or a lot of static long lived resources? What are you hoping to accomplish by having this? You might consider account segmentation and then account level tagging so you can group tags and resources. Is this for cost, security, drift control?

Thanks I’ll check it out.

Thanks I’ll check it out. Now you mentioned magpie I think I’ve heard about that on a podcast before.

Lots of static long lived resources, but also dynamic resources like ECS.

It’s mostly for compliance to tick a box around having a full list of cloud assets.

Cloudquery if you want to build an ETL around that. Config doesn’t support every resource

steampipe.io allows you to query AWS API as SQL. Also, check out AWS Config, but this costs money.

Thanks. Will do!

Stuff does exist but we never found anything that met our requirements. We ended up building a relational database in RDS Aurora and used lambda and the AWS API to populate information. This was required because we had a large landing zone and so we needed to map assets back to accounts and owners metadata using relationships. We had tables for accounts, compute, compute inventory, cves, tags, networking devices, containers .. then plugged this into Quicksight for some nice dashboarding and monthly reporting.

On a smaller scale without the need for relational data I would say DynamoDB with some lambdas would work. You can also use services like Resource Explorer and Config. Config rules can be set to trigger a lambda when a resource changes, etc.

Why are you not using AWS Config? It is designed for exactly this.

Good question. Something I’m looking into - thanks!

Thanks :+1:

Someone else mentioned that not all resource types are supported, but i have not yet found a resource type my customers care about not supported.

CloudQuery

Maybe cloudcraft https://www.cloudcraft.co