0

I am trying to design a solution where Lambda function required to run within VPC which need to be triggered by DynamoDB events. My question is with the correct configuration of NACL and Security Groups can I make the trigger working?

3 Answers 3

1

I don't see how NACL or Security Groups would even be relevant to your problem statement. DynamoDB would trigger a call to the AWS API to invoke your Lambda function. AWS then invokes your Lambda function with the event information from DynamoDB. If the Lambda function is configured to run in a VPC then it will run in a VPC.

Is there an actual error you are currently encountering?

Sign up to request clarification or add additional context in comments.

Comments

1

I have it working this way...

  1. Set up a VPC Endpoint
  2. For the subnet your Lambda is in, add inbound rules to the NACL for port range 1024 - 65535 and these CIDR blocks:
    • 52.94.0.0/22
    • 52.119.224.0/20
  3. Subscribe to receive a notification of changes to IP address ranges, in case the above CIDRs change.

I'm trying to figure out if there is a better way; I was under the assumption the NACL rules were not needed.

Comments

0

After reaching out to AWS I was able to clarify how the trigger work, we don't have to specify any NACL or Security Groups which enable the trigger because AWS uses a what they call a "Private Connection". Even though I have a serious concern on how it penetrate all these firewalls, it really works without any configuration changes.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.