Skip to content

Can not make the aws lambda plugin work #493

@nvadluri

Description

@nvadluri

Hi, I followed the instructions and did as below, but not seeing any results on backstage with lambda function.

Followed these steps:

  1. cd packages/backend
  2. yarn add @roadiehq/backstage-plugin-aws-auth
  3. created aws.ts file and updated as below

Screen Shot 2021-11-24 at 12 30 00 AM

  1. Updated index file with below lines
    import aws from './plugins/aws';
    ...
    const awsEnv = useHotMemoize(module, () => createEnv('aws'));
    ...
    const apiRouter = Router();
    ...
    apiRouter.use('/aws', await aws(awsEnv));

  2. Then cd packages/app

  3. yarn add @roadiehq/backstage-plugin-aws-lambda

  4. Updated this file, packages/app/src/components/catalog/EntityPage.tsx, as below

Screen Shot 2021-11-24 at 12 15 33 AM

Screen Shot 2021-11-24 at 12 15 49 AM

  1. Then updated my component entry with below annotations
    annotations:
    backstage.io/techdocs-ref: dir:../../.
    aws.com/lambda-function-name: function-name
    aws.com/lambda-region: us-west-2

I didn't update the AWS keys, but expecting the front end should show something or throw an error...I am not seeing any error logs on backstage, but no results on backstage. Can you please confirm, am I missing anything ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions