-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
27 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
output "arn" { | ||
value = "${aws_lambda_function.this.arn}" | ||
value = aws_lambda_function.this.arn | ||
} | ||
|
||
output "invoke_arn" { | ||
value = "${aws_lambda_function.this.invoke_arn}" | ||
value = aws_lambda_function.this.invoke_arn | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,61 @@ | ||
variable "runtime" { | ||
description = "Language to use for Lambda" | ||
type = "string" | ||
type = string | ||
default = "go1.x" | ||
} | ||
|
||
variable "handler" { | ||
description = "Program entrypoint for Lambda" | ||
type = "string" | ||
type = string | ||
default = "main" | ||
} | ||
|
||
variable "timeout" { | ||
description = "Timeout after which Lamdba will terminate" | ||
type = "string" | ||
type = string | ||
default = "10" | ||
} | ||
|
||
variable "source_bucket" { | ||
description = "Bucket to use for loading Lambda source ZIP" | ||
type = "string" | ||
type = string | ||
} | ||
|
||
variable "source_prefix" { | ||
description = "S3 prefix to use for loading Lambda ZIP" | ||
type = "string" | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "source_version" { | ||
description = "Version of Lambda ZIP to use" | ||
type = "string" | ||
type = string | ||
} | ||
|
||
variable "function_name" { | ||
description = "Name for Lambda function" | ||
type = "string" | ||
type = string | ||
} | ||
|
||
variable "environment_variables" { | ||
description = "Variables to provide for Lambda environment" | ||
type = "map" | ||
type = map(string) | ||
default = {} | ||
} | ||
|
||
variable "access_policy_document" { | ||
description = "IAM policy provided to Lambda role" | ||
type = "string" | ||
type = string | ||
} | ||
|
||
variable "source_types" { | ||
description = "Source types which are allowed to invoke the Lambda. Must align with entries in source_arns variable" | ||
type = "list" | ||
type = list(string) | ||
default = ["apigateway"] | ||
} | ||
|
||
variable "source_arns" { | ||
description = "Source ARNs which are allowed to invoke the Lambda. Must align with entries in source_types variable" | ||
type = "list" | ||
type = list(string) | ||
} | ||
|