Backstage Plugins by Example: Part 2

Scaffold Backend Plugin

To accomplish our goal, we will want to create a backend Plugin to make the AWS calls on behalf of the frontend Plugin. The Backstage documentation, Backend plugins, provides us a basic scaffold for this backend Plugin.

Accessing a Mock Backend Plugin API from the Frontend Plugin

While we could brute force access the backend Plugin API from the frontend Plugin, we instead will follow patterns provided in the kubernetes core feature Plugin. Here will first create a mock (fake) backend Plugin API and pass it to the frontend Plugin so that we can develop the frontend Plugin without the backend Plugin API being available, i.e., when we develop using yarn start from the frontend Plugin folder.

Accessing the Actual Backend Plugin API from the Frontend Plugin

We now work to access the actual backend Plugin API by creating a client.

Next Steps

In the next article, Backstage Plugins by Example: Part 3, we secure our backend Plugin API.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
John Tucker

John Tucker

Broad infrastructure, development, and soft-skill background