# @architect/plugin-budget-watch

> Architect plugin for limiting cost of deployed apps

Latest version **0.0.4** (published 2021-10-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @architect/plugin-budget-watch
pnpm add @architect/plugin-budget-watch
yarn add @architect/plugin-budget-watch
bun add @architect/plugin-budget-watch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-10-05 |
| First published | 2021-10-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 1 |
| Unpacked size | 49.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 5 |
| Author | Ryan Bethel |
| Maintainers | brianleroux, dam, kborchers, ryanblock, architectci, filmaj |

## Links

- npm: https://www.npmjs.com/package/@architect/plugin-budget-watch
- Repository: https://github.com/architect/plugin-budget-watch
- Homepage: https://github.com/architect/plugin-budget-watch#readme
- Issues: https://github.com/architect/plugin-budget-watch/issues
- npm.io page: https://npm.io/package/@architect/plugin-budget-watch

## Dependencies (1)

- [@architect/architect](https://npm.io/package/@architect/architect.md) ^9.0.1

## Recent versions

- 0.0.4 (latest) — 2021-10-05
- 0.0.3 — 2021-10-05

## README

[<img src="https://s3-us-west-2.amazonaws.com/arc.codes/architect-logo-500b@2x.png" width=500>](https://www.npmjs.com/package/@architect/plugin-budget-watch)

## [`@architect/plugin-budget-watch`](https://www.npmjs.com/package/@architect/plugin-budget-watch)

[![GitHub CI status](https://github.com/architect/plugin-budget-watch/workflows/Node%20CI/badge.svg)](https://github.com/architect/plugin-budget-watch/actions?query=workflow%3A%22Node+CI%22)

There are many ways a serverless app could run up your bill. Maybe you hit the top of hacker news, or you might have an infinite loop. The simplest way to stop a runaway app is to shut down the compute resources. By setting reserved concurrency (how many simultaneous executions can run) on all lambdas to zero, you can effectively stop the app. The budget-watch plugin can be added to an Architect app to accomplish this. 

### Install

`npm i @architect/plugin-budget-watch`

Add these lines to your Architect project manifest:

```arc
# app.arc
@plugins
architect/plugin-budget-watch
    
@budget
limit $40
email "notify@example.com"
```

Once deployed, there is a budget alert scoped to just the resources of the app. If the cost of those resources exceeds the limit set, a shutdown is triggered. To restart the app, the budget limit can be increased or removed and the app redeployed. This resets the lambda concurrencies, and the app will resume operation.

---
_Source: https://npm.io/package/@architect/plugin-budget-watch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
