@kozmoai/catalog-backend-module-aws
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

Catalog Backend Module for AWS

This is an extension module to the plugin-catalog-backend plugin, providing entity providers to read AWS objects as Backstage Entities.

You will need to configure the providers in your catalog.ts file in your backstage backend:

import {
  AWSLambdaFunctionProvider,
  AWSS3BucketProvider,
  AWSIAMUserProvider,
  AWSEC2Provider,
} from '@kozmoai/catalog-backend-module-aws';

export default async function createPlugin(
  env: PluginEnvironment,
): Promise<Router> {
  const builder = await CatalogBuilder.create(env);
  const s3Provider = AWSS3BucketProvider.fromConfig(config, env);
  const lambdaProvider = AWSLambdaFunctionProvider.fromConfig(config, env);
  const iamUserProvider = AWSIAMUserProvider.fromConfig(config, env);
  const ec2Provider = AWSEC2Provider.fromConfig(config, env);
  const awsAccountsProvider = AWSOrganizationAccountsProvider.fromConfig(
    config,
    env,
  );

  builder.addEntityProvider(s3Provider);
  builder.addEntityProvider(lambdaProvider);
  builder.addEntityProvider(iamUserProvider);
  builder.addEntityProvider(ec2Provider);
  builder.addEntityProvider(awsAccountsProvider);

  s3Provider.run();
  lambdaProvider.run();
  iamUserProvider.run();
  ec2Provider.run();
  awsAccountsProvider.run();

  const { processingEngine, router } = await builder.build();
  await processingEngine.start();

  // ...

  return router;
}

/@kozmoai/catalog-backend-module-aws/

    Package Sidebar

    Install

    npm i @kozmoai/catalog-backend-module-aws

    Homepage

    glint.io

    Weekly Downloads

    2

    Version

    2.2.1

    License

    Apache-2.0

    Unpacked Size

    144 kB

    Total Files

    7

    Last publish

    Collaborators

    • mohamedbench