# aws-migration-essentials

> The purpose of the Package is to migrate SSM between one region to another. In future this package will have migration for databases, pipelines and elastic beanstalk as well.

Latest version **1.0.1** (published 2020-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install aws-migration-essentials
pnpm add aws-migration-essentials
yarn add aws-migration-essentials
bun add aws-migration-essentials
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-05-03 |
| First published | 2020-04-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Arslan Fareed |
| Maintainers | arslanfareed |

## Links

- npm: https://www.npmjs.com/package/aws-migration-essentials
- npm.io page: https://npm.io/package/aws-migration-essentials

## Dependencies (1)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.665.0

## Recent versions

- 1.0.1 (latest) — 2020-05-03
- 1.0.0 — 2020-04-29

## README

# AWS-Migration-Essentials

The purpose of the Package is to migrate SSM between one region to another. In future this package will have migration for databases, pipelines and elastic beanstalk as well.

## Getting Started

### Prerequisites

1. Install Node

### Installing

```
npm i aws-migration-essentials
```

## Usage


```
const AWS = require('aws-sdk')
const express = require('express')
const app = express()
const port = 3000
const awsEssentials = require('aws-migration-essentials')

app.listen(port, () => console.log(`AWS Migration app listening at http://localhost:${port}`))
```

```
app.get('/clone', async (req, res) => {
    const {origin, destination, overwrite} = req.query
    const result = await awsEssentials.cloneSSM(origin, destination, (overwrite === 'true'))
    const Response = {
        ResponseCode: '000',
        ResponseStatus: 'SUCCESS',
        CloneResult: result
      }
    res.status(200).send(Response)
})
```

```
app.get('/migrate', async (req, res) => {
    const {origin, destination, overwrite} = req.query
    const result = await awsEssentials.migrateSSM(origin, destination, (overwrite === 'true'))
    const Response = {
        ResponseCode: '000',
        ResponseStatus: 'SUCCESS',
        CloneResult: result
      }
    res.status(200).send(Response)
})
```

## Authors

* **Arslan Fareed**

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