Skip to content

Commit

Permalink
added code signing arn support
Browse files Browse the repository at this point in the history
Signed-off-by: Thiha Soe <[email protected]>
  • Loading branch information
tsoe77 committed Oct 14, 2022
1 parent 2b0d689 commit b5bdd30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resource "aws_lambda_function" "this" {
image_uri = var.image_uri
package_type = var.package_type
architectures = var.architectures
code_signing_config_arn = var.code_signing_config_arn

/* ephemeral_storage is not supported in gov-cloud region, so it should be set to `null` */
dynamic "ephemeral_storage" {
Expand Down
13 changes: 6 additions & 7 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ output "lambda_function_source_code_size" {
value = try(aws_lambda_function.this[0].source_code_size, "")
}

# Lambda Function URL
output "lambda_function_url" {
description = "The URL of the Lambda Function URL"
value = try(aws_lambda_function_url.this[0].function_url, "")
output "lambda_function_signing_job_arn" {
description = "ARN of the signing job."
value = try(aws_lambda_function.this[0].signing_job_arn, "")
}

output "lambda_function_url_id" {
description = "The Lambda Function URL generated id"
value = try(aws_lambda_function_url.this[0].url_id, "")
output "lambda_function_signing_profile_version_arn" {
description = "ARN of the signing profile version."
value = try(aws_lambda_function.this[0].signing_profile_version_arn, "")
}

# Lambda Layer
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ variable "description" {
default = ""
}

variable "code_signing_config_arn" {
description = "Amazon Resource Name (ARN) for a Code Signing Configuration"
type = string
default = null
}

variable "layers" {
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
type = list(string)
Expand Down

0 comments on commit b5bdd30

Please sign in to comment.