github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/aws/r/lambda_alias.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_lambda_alias" 4 sidebar_current: "docs-aws-resource-lambda-alias" 5 description: |- 6 Creates a Lambda function alias. 7 --- 8 9 # aws\_lambda\_alias 10 11 Creates a Lambda function alias. Creates an alias that points to the specified Lambda function version. 12 13 For information about Lambda and how to use it, see [What is AWS Lambda?][1] 14 For information about function aliases, see [CreateAlias][2] in the API docs. 15 16 ## Example Usage 17 18 ``` 19 resource "aws_lambda_alias" "test_alias" { 20 name = "testalias" 21 description = "a sample description" 22 function_name = "${aws_lambda_function.lambda_function_test.arn}" 23 function_version = "$LATEST" 24 } 25 ``` 26 27 ## Argument Reference 28 29 * `name` - (Required) Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)` 30 * `description` - (Optional) Description of the alias. 31 * `function_name` - (Required) The function ARN of the Lambda function for which you want to create an alias. 32 * `function_version` - (Required) Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`. 33 34 [1]: http://docs.aws.amazon.com/lambda/latest/dg/welcome.html 35 [2]: http://docs.aws.amazon.com/lambda/latest/dg/API_CreateAlias.html