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

How to get the arn of a newly created aws_cloudformation_stack terraform – Amazon web services

I have this resource being created by terraform. How can I reference the arn in the next resource creation? resource "aws_cloudformation_stack" "datadog_forwarder" { name = "datadog-forwarder" capabilities = ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND"] parameters = { DdApiKeySecretArn = "secret_arn", DdSite = "datadoghq.com",…

VIEW QUESTION
Back To Top
Search