Giter Site home page Giter Site logo

Comments (5)

brachipa avatar brachipa commented on September 15, 2024 1

No need NAT, you can do it also with VPC endpoint:
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html
And that is how to do it to Kinesis:
https://docs.aws.amazon.com/streams/latest/dev/vpc.html

Works for me :) and match cheaper.

If you will read the NAT pricing documnentation they are also recommending this:
https://aws.amazon.com/vpc/pricing/
read the note at the end:

Note: To avoid the NAT Gateway Data Processing charge in this example, you could setup a Gateway Type VPC endpoint and route the traffic to/from S3 through the VPC endpoint instead of going through the NAT Gateway. There is no data processing or hourly charges for using Gateway Type VPC endpoints. For details on how to use VPC endpoints, please visit VPC Endpoints Documentation.

from kinesis-aggregation.

 avatar commented on September 15, 2024

Is your Lambda running in a VPC by chance?

from kinesis-aggregation.

AEKurt avatar AEKurt commented on September 15, 2024

Not by chance. Intentionally we have put our lambda in vpc. What could be problem ?

from kinesis-aggregation.

 avatar commented on September 15, 2024

I'm not sure how the Lambda/Kinesis integration for reading works, but for publishing, it seems like the request is getting dropped by a firewall or network rule somewhere. Kinesis is not directly accessible from within a VPC (i..e it doesn't support VPC endpoints), so a request from your Lambda needs get out to the Internet to get to Kinesis.

From a public subnet, you'd need to confirm that port 443 is allowed from:

Lambda -> Internet Gateway -> Kinesis

From a private subnet, you'd need to confirm that port 443 is allowed from:

Lambda -> NAT -> Internet Gateway -> Kinesis

Double-check 443 outbound on your Lambda security group, your NAT rules (if they exist), your ACLs, etc. You could try turn on VPC flow logs to help diagnose the problem.

I'll double-check when I get a chance, but it seems unlikely it's a code problem unless we're configured to talk to a non-existent endpoint or something weird like that.

from kinesis-aggregation.

AEKurt avatar AEKurt commented on September 15, 2024

Thank you for your help. We have directly give internet gateway to our subnet, however we did not use NAT. We have solved problem with using NAT.

Lambda -> NAT -> Internet Gateway -> Kinesis

from kinesis-aggregation.

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.