Giter Site home page Giter Site logo

Comments (5)

hampsterx avatar hampsterx commented on June 26, 2024 1

Try adding passRole to iamRoleStatement eg

  iamRoleStatements:
    - Effect: "Allow"
      Action:
        - "logs:PutSubscriptionFilter"
      Resource: "*"
    - Effect: "Allow"
      Action:
        - "iam:PassRole"
      Resource: "*"

Seems to match what is required/documented here:

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html

from lambda-logging-kinesis-demo.

andrhamm avatar andrhamm commented on June 26, 2024

The above recommendation by @hampsterx didn't work for me.

EDIT: Oops, I hadn't enabled the serverless-iam-roles-per-function plugin. That, in conjunction with @hampsterx's tip got it working for me. 👏

from lambda-logging-kinesis-demo.

pedrodelgallego avatar pedrodelgallego commented on June 26, 2024

@hampsterx it works!

from lambda-logging-kinesis-demo.

omry-hay avatar omry-hay commented on June 26, 2024

@hampsterx, @pedrodelgallego @andrhamm, thank you for raising the issue and finding a fix for it.
I've added a PR for fixing this issue.
In addition I've changed the configuration to be more robust, so you can use environment variables to override some basic configurations.

@theburningmonk - Can you please review it?

from lambda-logging-kinesis-demo.

theburningmonk avatar theburningmonk commented on June 26, 2024

Hi guys, thanks for reporting this. Sadly this project is no longer necessary, per se, as I have published a version of this as a SAR app, here which lets you specify the ARN for the target to be either Lambda or Kinesis.

from lambda-logging-kinesis-demo.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.