Giter VIP home page Giter VIP logo

Comments (8)

dominikschubert avatar dominikschubert commented on September 25, 2024 1

Thanks for reporting and providing the sample @Garethp !
I was able to reproduce your observed exception and will reopen this issue.

from localstack.

localstack-bot avatar localstack-bot commented on September 25, 2024

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

from localstack.

Yehonal avatar Yehonal commented on September 25, 2024

I have the same issue

from localstack.

Yehonal avatar Yehonal commented on September 25, 2024

I also think this is related to this other issue somehow: #10042

Because using the same workaround I mentioned there, it works

from localstack.

hkaiser25 avatar hkaiser25 commented on September 25, 2024

Same issue here when running samlocal deploy

from localstack.

Garethp avatar Garethp commented on September 25, 2024

I pulled down the latest image and am still seeing this issue on 3.1.1.dev20240222103119. Has this fix been pushed up to docker yet?

from localstack.

Garethp avatar Garethp commented on September 25, 2024

@dominikschubert I'm still seeing this error on 3.1.1.dev20240223125541, which was published an hour ago. Instead of being on APIGateway Integrations, I've reproduced it for Event Rule Targets, with the following code:

export class LambdaPermissionStack extends Stack {
  constructor(scope: Construct, id: string, props: StackProps) {
    super(scope, id, props);

    const lambda = new Function(this, "lambda-handler", {
      runtime: Runtime.NODEJS_20_X,
      code: Code.fromInline("exports.handler = async () => ({ });"),
      handler: "index.handler",
    });

    new Rule(this, "ScheduleRule", {
      schedule: Schedule.cron({
        hour: process.env.SECOND_RUN ? "7" : "6",
        minute: "0",
        weekDay: "MON-FRI",
      }),
      targets: [new aws_events_targets.LambdaFunction(lambda)],
    });
  }
}

I've pushed a reproduction up to: https://github.com/Garethp/localstack-bugs/tree/lamda-permission-redeploy, just clone down that branch, run yarn install && ./start.sh and you should see the error occur.

from localstack.

Garethp avatar Garethp commented on September 25, 2024

Thanks @dominikschubert, that update works for my stack :)

from localstack.

Related Issues (20)

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.