---
title: "Discussion on \"How to Assign Static IP to AWS Lambda\" | Hashnode"
description: "Discussion on \"How to Assign Static IP to AWS Lambda\". In this article, we will address this network challenge with Lambda function and explain in a 6 steps how to assign a static IP to it."
url: "https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Assign Static IP to AWS Lambda](https://blog.basim.dev/how-to-assign-static-ip-to-aws-lambda?utm_source=hashnode&utm_medium=feed)

In this article, we will address this network challenge with Lambda function and explain in a 6 steps how to assign a static IP to it.

Sep 11, 2021 · 5 min read · blog.basim.dev  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#security](https://hashnode.com/tag/security)
-   [#cloud](https://hashnode.com/tag/cloud)

## Written by

[Basim Hennawi](https://hashnode.com/@basimhennawi)

@basimhennawi · Hamburg, Germany

  
[View profile](https://hashnode.com/@basimhennawi)

Software Engineer

## Responses 6

Markdown supported · ⌘↵ to post

[John Banta](https://hashnode.com/@johnbanta)

[Dec 2, 2022](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/638978cdbc608d676e46396c)

Great tutorial - very clear compared to some others I saw and this got my lambda function operating in a VPC as desired. One issue I had though is if the Lambda function has an Amazon Alexa Smart Skill as a trigger, is there something I need to configure in the VPC for this to work? Alexa skill can access the lambda function when it is not using a VPC but when I use the VPC, the smart skill cannot access the Lambda function's ARN.

[Avinash Dalvi](https://hashnode.com/@AvinashDalvi)

[Nov 3, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/61821a76b4753831f932d693)

Nice information 👍🏻👍🏻

[Sandro Volpicella](https://hashnode.com/@SandroVolpicella)

[Nov 2, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/618156d6a4505a32bcf1d1df)

This is a great write-up and IMO a thing that is used in ANY big corporation that uses AWS. Used it already a couple of times.

[Basim Hennawi](https://hashnode.com/@basimhennawi)

[Nov 2, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/618156d6a4505a32bcf1d1df#reply-61815725a4505a32bcf1d1f2)

Thanks Sandro! Glad that you find it useful!

[Hope Atina](https://hashnode.com/@Emerginghope)

[Sep 12, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613e700a1821961e25521163)

Shout out too the clarity of this post! Great job [Basim Hennawi](https://hashnode.com/@basimhennawi)

[Basim Hennawi](https://hashnode.com/@basimhennawi)

[Sep 13, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613e700a1821961e25521163#reply-613ed5831821961e25521701)

Thanks Hope!

[Mick Brown](https://hashnode.com/@YanielCuellar)

[Sep 12, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613e5b4022b7a41dfe5fec10)

Thanks for sharing

[Basim Hennawi](https://hashnode.com/@basimhennawi)

[Sep 13, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613e5b4022b7a41dfe5fec10#reply-613ed57422b7a41dfe5ff48c)

Anytime!

[Salah Elhossiny](https://hashnode.com/@Salah856)

[Sep 11, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613c610722b7a41dfe5fb9d5)

Awesome

[Basim Hennawi](https://hashnode.com/@basimhennawi)

[Sep 11, 2021](https://hashnode.com/posts/how-to-assign-static-ip-to-aws-lambda/613c5b6a22b7a41dfe5fb8fd/comment/613c610722b7a41dfe5fb9d5#reply-613c655422b7a41dfe5fba99)

Thanks Salah!
