Skip to content

Commit

Permalink
feat(lambda): removed image input for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mskrajnowski committed Jan 20, 2021
1 parent a17c3ef commit 746c740
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
10 changes: 3 additions & 7 deletions lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Creates an AWS Lambda function
| Provider | Requirements |
|-|-|
| terraform | `>= 0.12` |
| `aws` | `>= 3.19.0` |
| `aws` | `>= 2.40.0` |

## Inputs

Expand Down Expand Up @@ -53,10 +53,6 @@ Creates an AWS Lambda function

Path to the event handler

* `image` (`string`, default: `null`)

URI of a container image with the Lambda's source. Either `package_path`, `package_s3` or `image` is required.

* `layer_qualified_arns` (`list(string)`, default: `[]`)

Lambda layers to include
Expand All @@ -71,11 +67,11 @@ Creates an AWS Lambda function

* `package_path` (`string`, default: `null`)

Path to the zip that contains the Lambda's source. Either `package_path`, `package_s3` or `image` is required.
Path to the zip that contains the Lambda's source. Either `package_path` or `package_s3` is required.

* `package_s3` (`string`, default: `null`)

S3 object path to a zip that contains the Lambda's source in a `{bucket}/{key}` format. Either `package_path`, `package_s3` or `image` is required.
S3 object path to a zip that contains the Lambda's source in a `{bucket}/{key}` format. Either `package_path` or `package_s3` is required.

* `package_s3_version` (`string`, default: `null`)

Expand Down
1 change: 0 additions & 1 deletion lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ resource "aws_lambda_function" "lambda" {
s3_bucket = local.package_s3_bucket
s3_key = local.package_s3_key
s3_object_version = var.package_s3_version
image_uri = var.image

layers = var.layer_qualified_arns
handler = var.handler
Expand Down
10 changes: 2 additions & 8 deletions lambda/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ variable "name" {
}

variable "package_path" {
description = "Path to the zip that contains the Lambda's source. Either `package_path`, `package_s3` or `image` is required."
description = "Path to the zip that contains the Lambda's source. Either `package_path` or `package_s3` is required."
type = string
default = null
}

variable "package_s3" {
description = "S3 object path to a zip that contains the Lambda's source in a `{bucket}/{key}` format. Either `package_path`, `package_s3` or `image` is required."
description = "S3 object path to a zip that contains the Lambda's source in a `{bucket}/{key}` format. Either `package_path` or `package_s3` is required."
type = string
default = null
}
Expand All @@ -33,12 +33,6 @@ variable "package_s3_version" {
default = null
}

variable "image" {
description = "URI of a container image with the Lambda's source. Either `package_path`, `package_s3` or `image` is required."
type = string
default = null
}

variable "files" {
description = <<EOT
**Deprecated. Use the `zip` module and `package_path` input instead.**
Expand Down
2 changes: 1 addition & 1 deletion lambda/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ terraform {
required_version = ">= 0.12"

required_providers {
aws = ">= 3.19.0"
aws = ">= 2.40.0"
}
}

0 comments on commit 746c740

Please sign in to comment.