# rise-deployinfra

> ![GitHub CI status](https://github.com/rise-cli/rise-deployinfra/actions/workflows/test.yml/badge.svg)

Latest version **0.0.8** (published 2023-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install rise-deployinfra
pnpm add rise-deployinfra
yarn add rise-deployinfra
bun add rise-deployinfra
```

## 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.8 |
| Published | 2023-06-17 |
| First published | 2022-11-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 26.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | garysjennings |

## Links

- npm: https://www.npmjs.com/package/rise-deployinfra
- npm.io page: https://npm.io/package/rise-deployinfra

## Dependencies (2)

- [rise-aws-foundation](https://npm.io/package/rise-aws-foundation.md) ^0.0.25
- [rise-cli-foundation](https://npm.io/package/rise-cli-foundation.md) ^0.0.14

## Recent versions

- 0.0.8 (latest) — 2023-06-17
- 0.0.7 — 2023-03-14
- 0.0.6 — 2023-02-06
- 0.0.5 — 2023-02-05
- 0.0.4 — 2023-02-05
- 0.0.3 — 2023-01-15
- 0.0.2 — 2023-01-15
- 0.0.1 — 2022-11-15

## README

# Rise DeployInfra

![GitHub CI status](https://github.com/rise-cli/rise-deployinfra/actions/workflows/test.yml/badge.svg)

## Install

```
npm i rise-deployinfra
```

## Usage

### Deploy

```js
import { deployInfra } from 'rise-deployinfra'

const template = {
    Resources: {
        Database: {
            Type: 'AWS::DynamoDB::Table',
            Properties: {
                TableName: 'mydeplyinfratestdb',
                AttributeDefinitions: [
                    {
                        AttributeName: 'pk',
                        AttributeType: 'S'
                    },
                    {
                        AttributeName: 'sk',
                        AttributeType: 'S'
                    }
                ],
                KeySchema: [
                    {
                        AttributeName: 'pk',
                        KeyType: 'HASH'
                    },
                    {
                        AttributeName: 'sk',
                        KeyType: 'RANGE'
                    }
                ],

                BillingMode: 'PAY_PER_REQUEST'
            }
        }
    },
    Outputs: {
        TABLEARN: {
            Value: {
                Ref: 'Database'
            }
        }
    }
}

const res = await deployInfra({
    name: 'my-stack',
    region: 'us-east-1',
    stage: 'dev',
    template: JSON.stringify(template),
    outputs: ['TABLEARN']
})
```

### Deploy

```js
import { removeInfra } from 'rise-deployinfra'

const res = await removeInfra({
    name: 'my-stack',
    region: 'us-east-1',
    stage: 'dev'
})
```

---
_Source: https://npm.io/package/rise-deployinfra · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
