skip to Main Content

What will be the purpose of .function_name in terraform code – Amazon web services

I'm learning more about terraform and AWS. I've seen a code in Working with aws_lambda_permission and aws_apigatewayv2_api resource "aws_lambda_permission" "api_permission" { statement_id = "allow_apigw_invoke" function_name = aws_lambda_function.get_user_lambda.lambda_function_name action = "lambda:InvokeFunction" principal = "apigateway.amazonaws.com" source_arn = "${aws_apigatewayv2_api.users_api.execution_arn}/*/*/${split("/", aws_apigatewayv2_route.get_user_route.route_key)[1]}" } I would…

VIEW QUESTION
Back To Top
Search