Socket
Book a DemoInstallSign in
Socket

@portaldx/plugin-rollback-application

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portaldx/plugin-rollback-application

Imagine you have an application that takes 20 minutes to deploy and you need to make an URGENT fix, waiting that time wouldn't be a good idea.

latest
npmnpm
Version
0.1.3
Version published
Maintainers
3
Created
Source

@portaldx/plugin-rollback-application

Imagine you have an application that takes 20 minutes to deploy and you need to make an URGENT fix, waiting that time wouldn't be a good idea.

This plugin was developed to simplify the process of rolling back your ECS application. By using it, you can easily revert to a previous version of your taskDefinition in case of errors or problems with the current version, bypassing the deploy phase. Additionally, it also allows you to view and compare the differences between versions before performing the rollback. All of this with just a few clicks!

This plugin was created through the Backstage CLI

Requirements

  • Backstage Project;
  • Node.js v16.14.x
  • AWS Credentials with permissions to read and alter taskDefinitions

Use

app-config.yaml

[...]
rollbackApplication:
  accessKeyId: {{ ACCESS_KEY_ID }}
  accessSecretKey: {{ SECRET_ACCESS_KEY_ID }}
  region: {{ AWS_REGION }}
[...]

catalog-info.yaml

This file is located at the root of each of your remote repositories. The plugin will only work with the settings as described

[...]
metadata:
  [...]
  annotations:
    [...]
    aws.amazon.com/service: name-you-application-aws-staging
    aws.amazon.com/cluster: your-application-cluster
[...]

catalog/EntityPage.tsx

packages/app/src/components/catalog/EntityPage.tsx

+ import { RollbackApplicationComponent, isRollbackAvaliable } from '@portaldx/plugin-rollback-application';

[...]

const serviceEntityPage = (
  <EntityLayout>
+   <EntityLayout.Route if={isRollbackAvaliable} path="/rollback" title="Rollback">
+      <RollbackApplicationComponent />
+    </EntityLayout.Route>
  </EntityLayout>
); 

Developed with ❤️ by the MadeiraMadeira SRE Team

FAQs

Package last updated on 08 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts