By using AWS re:Post, you agree to the Terms of Use

new Lambda Function URL with Terraform


I have noticed the new Function URL for lambdas that have just been launched recently. I am interested to use this functionality as it will be a cost-saver for us. However, I have not found any way to add it to integrate it into our terraform files. the tutorial here uses all other services but terraform. If you have any idea how and if it can be done, I will be grateful.


asked 5 months ago531 views
2 Answers
Accepted Answer

You can use the aws_lambda_function_url resource in Terraform, something like this:

resource "aws_lambda_function_url" "function" {
    function_name      = aws_lambda_function.function.function_name
    authorization_type = "NONE"

You can find more information in the documentation:

answered 5 months ago
reviewed 5 months ago

This blog article does a nice end-to-end walkthrough of creating a lambda function url resource with Terraform including the provider block, aws_lambda_function_url resource and dependencies:

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions