new Lambda Function URL with Terraform

1

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.

Thanks!

The DF
已提問 2 年前檢視次數 3112 次
2 個答案
2
已接受的答案

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: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function_url

Ed
已回答 2 年前
AWS
專家
Gokul
已審閱 2 年前
1

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:

https://nquayson.com/aws-lambda-function-url-using-terraform-quick-walkthrough

naleb
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南