Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not make the aws lambda plugin work #493

Open
nvadluri opened this issue Nov 24, 2021 · 1 comment
Open

Can not make the aws lambda plugin work #493

nvadluri opened this issue Nov 24, 2021 · 1 comment

Comments

@nvadluri
Copy link

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 ?

@roadie-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants