@portal-dx/plugin-rollback-application
v0.1.4
Published
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.
Downloads
3
Readme
@portal-dx/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 '@portal-dx/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