Created
January 10, 2020 08:40
-
-
Save Tirke/75bb3839ea48a5eeb59320a023e251bd to your computer and use it in GitHub Desktop.
alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_lambda_function" "lambda" { | |
... | |
publish = true // Publish a new version of the lambda when the code changes | |
} | |
resource "aws_lambda_alias" "lambda-alias" { | |
name = "latest" | |
description = "alias pointing to the latest published version of the lambda" | |
function_name = aws_lambda_function.lambda.function_name | |
function_version = aws_lambda_function.lambda.version | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment