Can an Alexa Skill Lambda function have a static public IP address?

0

Hi, I am in the mid stages of developing an Alexa Skill and the Lambda function must make an API request to a public server that only allows whitelisted IP addresses.

So here are my requirements:

  1. My Alexa Skill uses a Lambda function, and so it must be able to receive trigger requests from the alexa-appkit.amazon.com service pricincipal (which uses the ARN of my Lambda function to send triggers).
  2. At the same time, if my lambda function makes a request to an API on the internet, it needs to come from a static public IP.

I have tried setting up a VPC, but I am struggling to understand how I am to attach my Lambda function to a VPC subnet to NAT out to a static public IP while also allowing it to be reachable to be triggered by the Alexa service principal. Is this even possible?

1개 답변
0
  • I did something very similar, but the Alexa service could not reach my Lamda function anymore to trigger it. The way it works without a VPC is you just register your Lambda function ARN with the Alexa Service, but I don't see how the Alexa Service can reach it with an ARN if it is behind a NAT gateway now. Maybe I misconfigured something though.

  • Make sure you updated the route tables as explained in the article.

  • Wouldn't the Alexa Service now have to send triggers to the public IP address instead? Or would it still be able to send triggers via ARN?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠