# I built an open-source app to find lost infrastructure

**URL:** <https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410>\
**Category:** Billing & Cost\
**Tags:** ec2\
**Created:** [November 1, 2023, 6:47pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410 "2023-11-01T18:47:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 6:47pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/1 "2023-11-01T18:47:52Z")

</div>

Hey folks!

I got tired of our dev shop losing EC2 instances so I created an OSS app to find them :D. If you’ve lost some infrastructure, let me know in the comments and I’ll add support for discovering it!

It’s not packaged nicely in Homebrew/APT/etc. yet (I’ll work on that next), but it’s pretty easy to use: you just need to add your credentials to ~/.aws/credentials and start it up.

![](https://awshq.com/uploads/default/original/2X/0/0757bbadda153cca4baf90a9d4d7f7a13097d4f9.gif)

The source-code is available in CodeBerg (you’ll need to create an account to view it): [https://codeberg.org/sunshower/stratosphere](https://codeberg.org/sunshower/stratosphere)

I think the next thing for it is to list instances in the reserved instances marketplace and match them with your existing instances. What do you think?

---

<div class="post-metadata">

**Author:** ![inphinitfx](https://awshq.com/letter_avatar_proxy/v4/letter/i/dec6dc/32.png) [@inphinitfx](https://awshq.com/u/inphinitfx)\
**Post date:** [November 1, 2023, 7:00pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/3 "2023-11-01T19:00:04Z")

</div>

What advantages does this give over the ec2 global dashboard?

Also, how do you lose instances omg 😕

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 7:09pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/4 "2023-11-01T19:09:30Z")

</div>

> [@inphinitfx](#):
>
> What advantages does this give over the ec2 global dashboard? Also, how do you lose instances omg 😕

Well, when you have hundreds, “lose” can mean “active, but without any scheduled workloads”–it’s pretty common. Right now it may be similar to the global dashboard for EC2, but we can also find unused subnets, or aligning a spot instance with a reserved instance on RI marketplace

---

<div class="post-metadata">

**Author:** ![China\_Lover2](https://awshq.com/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@China\_Lover2](https://awshq.com/u/China_Lover2)\
**Post date:** [November 1, 2023, 8:02pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/5 "2023-11-01T20:02:17Z")

</div>

Great work.

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 8:05pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/6 "2023-11-01T20:05:04Z")

</div>

> [@China\_Lover2](#):
>
> Great work.

Thank you!

---

<div class="post-metadata">

**Author:** ![CyberKingfisher](https://awshq.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@CyberKingfisher](https://awshq.com/u/CyberKingfisher)\
**Post date:** [November 1, 2023, 8:26pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/7 "2023-11-01T20:26:57Z")

</div>

Great idea but I’d be annoyed with my DevOps if they were provisioning random, untracked resources. I typically challenge them every 6 months to ensure we’re using instances effectively (driven from billing).

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 8:37pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/8 "2023-11-01T20:37:44Z")

</div>

> [@CyberKingfisher](#):
>
> Great idea but I’d be annoyed with my DevOps if they were provisioning random, untracked resources. I typically challenge them every 6 months to ensure we’re using instances effectively (driven from billing).

I definitely agree, which is why I made this :). The background is that basically everywhere I’ve ever worked has had a few overlooked items, and I’d always go hunt them down using bash and aws-cli, so I figured I’d just consolidate all of those into an open-source application.

I’m making it so that users can create dashboards from arbitrary CQL queries across AWS SDK responses which I hope will be more convenient than jq+AWS CLI. I’ll also add support for starting and stopping instances on a schedule, and internally there are APIs for operating on all the regions at once. If you can think of anything that you’d like to see, I’d be happy to get it in there for you!

---

<div class="post-metadata">

**Author:** ![CyberKingfisher](https://awshq.com/letter_avatar_proxy/v4/letter/c/ecae2f/32.png) [@CyberKingfisher](https://awshq.com/u/CyberKingfisher)\
**Post date:** [November 1, 2023, 8:41pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/9 "2023-11-01T20:41:27Z")

</div>

> [@sunshowerjoe](#):
>
> I definitely agree, which is why I made this :). The background is that basically everywhere I’ve ever worked has had a few overlooked items, and I’d always go hunt them down using bash and aws-cli, so I figured I’d …

I’ll take a look at it in the coming days and if it’s as good as you say, I’ll promote it on LinkedIn. If you’re on LinkedIn, dm me and I’ll credit your work too 😊

---

<div class="post-metadata">

**Author:** ![alpha\_ray\_burst](https://awshq.com/letter_avatar_proxy/v4/letter/a/91b2a8/32.png) [@alpha\_ray\_burst](https://awshq.com/u/alpha_ray_burst)\
**Post date:** [November 1, 2023, 8:44pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/10 "2023-11-01T20:44:11Z")

</div>

I would love to use this, but we don’t allow IAM credentials (aside from temporary ones that expire after 15mins). Thanks PCI-DSS 😑

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 8:47pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/11 "2023-11-01T20:47:19Z")

</div>

> [@alpha\_ray\_burst](#):
>
> I would love to use this, but we don’t allow IAM credentials (aside from temporary ones that expire after 15mins). Thanks PCI-DSS 😑

Yikes–15 minutes is pretty short, but we’re in the same boat with MFA devices, but our timeout is 12 hours. If you can make AWS CLI calls you should be able to use this, but right now you’ll have to restart the app. I could add support for refreshing your credentials from the UI, and if there’s any sort of infrastructure questions you’d like answered or other features, I’d love to get them in for you!

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 9:01pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/12 "2023-11-01T21:01:30Z")

</div>

> [@CyberKingfisher](#):
>
> I’ll take a look at it in the coming days and if it’s as good as you say, I’ll promote it on LinkedIn. If you’re on LinkedIn, dm me and I’ll credit your work too 😊

Thank you–I really appreciate it. Right now, all it does is list your instances and their regions, but if you have any features that you think would be neat I’d love to prioritize them

---

<div class="post-metadata">

**Author:** ![HiCookieJack](https://awshq.com/letter_avatar_proxy/v4/letter/h/eada6e/32.png) [@HiCookieJack](https://awshq.com/u/HiCookieJack)\
**Post date:** [November 1, 2023, 10:34pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/13 "2023-11-01T22:34:51Z")

</div>

The link results in a 404 (Firefox Android) 😭

---

<div class="post-metadata">

**Author:** ![lazyant](https://awshq.com/letter_avatar_proxy/v4/letter/l/9dc877/32.png) [@lazyant](https://awshq.com/u/lazyant)\
**Post date:** [November 1, 2023, 10:35pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/14 "2023-11-01T22:35:52Z")

</div>

Nice. To avoid the problem, forcing known tags to resources is one solution.

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 1, 2023, 10:37pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/15 "2023-11-01T22:37:28Z")

</div>

> [@HiCookieJack](#):
>
> The link results in a 404 (Firefox Android) 😭

Yeah–unfortunately you need to sign up for a codeberg account to see it (or oauth)

---

<div class="post-metadata">

**Author:** ![twratl](https://awshq.com/letter_avatar_proxy/v4/letter/t/5e9695/32.png) [@twratl](https://awshq.com/u/twratl)\
**Post date:** [November 1, 2023, 11:20pm UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/16 "2023-11-01T23:20:41Z")

</div>

> [@alpha\_ray\_burst](#):
>
> I would love to use this, but we don’t allow IAM credentials (aside from temporary ones that expire after 15mins). Thanks PCI-DSS 😑

I come from a similar regulated background and get the requirement for temp credentials. But how can any CICD pipeline do its job in 15 minutes? Or other tool/human for that matter? Seems quite resteicted.

---

<div class="post-metadata">

**Author:** ![JPJackPott](https://awshq.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@JPJackPott](https://awshq.com/u/JPJackPott)\
**Post date:** [November 2, 2023, 12:46am UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/17 "2023-11-02T00:46:13Z")

</div>

> [@inphinitfx](#):
>
> What advantages does this give over the ec2 global dashboard? Also, how do you lose instances omg 😕

I’ve not had much joy with ec2 global in a multi account. This looks really clean, well done.

Sounds like it has some overlap with Steampipe- which I’ve never gotten around to trying but looks good if you can give it enough permissions.

---

<div class="post-metadata">

**Author:** ![Zealousideal\_Heat\_80](https://awshq.com/letter_avatar_proxy/v4/letter/z/ee7513/32.png) [@Zealousideal\_Heat\_80](https://awshq.com/u/Zealousideal_Heat_80)\
**Post date:** [November 2, 2023, 12:52am UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/18 "2023-11-02T00:52:17Z")

</div>

What are your criteria for considering a resource “lost”? Is it tied to consumption?

---

<div class="post-metadata">

**Author:** ![uekiamir](https://awshq.com/letter_avatar_proxy/v4/letter/u/958977/32.png) [@uekiamir](https://awshq.com/u/uekiamir)\
**Post date:** [November 2, 2023, 7:31am UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/19 "2023-11-02T07:31:43Z")

</div>

[https://codeberg.org/sunshower/stratosphere](https://codeberg.org/sunshower/stratosphere)

404 -

 ![](https://awshq.com/uploads/default/original/2X/b/b931218f9c0f0af54670f36f987eab150b2d5c3d.png)

---

<div class="post-metadata">

**Author:** ![uekiamir](https://awshq.com/letter_avatar_proxy/v4/letter/u/958977/32.png) [@uekiamir](https://awshq.com/u/uekiamir)\
**Post date:** [November 2, 2023, 7:34am UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/20 "2023-11-02T07:34:58Z")

</div>

> you’ll need to create an account to view it

yeah no thanks…

What’s wrong with Github or Gitlab? Too mainstream?

---

<div class="post-metadata">

**Author:** ![sunshowerjoe](https://awshq.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@sunshowerjoe](https://awshq.com/u/sunshowerjoe)\
**Post date:** [November 2, 2023, 7:43am UTC](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410/21 "2023-11-02T07:43:43Z")

</div>

> [@uekiamir](#):
>
> yeah no thanks… What’s wrong with Github or Gitlab? Too mainstream?

They don’t provide a way to opt out of training their proprietary models on your code. A lot of people don’t want to donate their time and effort to enrich trillion-dollar companies while simultaneously reducing that time and effort’s value in exchange for a commodity like hosting.

[Next page](https://awshq.com/t/i-built-an-open-source-app-to-find-lost-infrastructure/17410.md?page=2)
