1.0.1 • Published 4 years ago

aws-migration-essentials v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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