Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this module will be documented in this file.

## [v1.2.2] - 2023-11-20

### Changed

- Resolved an issue with Terraform apply process
- From function(data) `base64sha256(data.archive_file.this.output_path)` to use data.output `data.archive_file.this.output_base64sha256`
- Set null resource provider version `>= 3.0.0`

### Removed

- Unused variables `plaintext_params` and `config_file_name`

## [v1.2.1] - 2023-10-19

### Changed
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ resource "aws_lambda_function" "this" {

# Read source code from local
filename = local.file_name
source_code_hash = base64sha256(data.archive_file.this.output_path)
source_code_hash = data.archive_file.this.output_base64sha256

# Specification
timeout = var.timeout
Expand Down
19 changes: 0 additions & 19 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,6 @@ variable "source_code_dir" {
default = ""
}

variable "plaintext_params" {
description = <<EOF
Lambda@Edge does not support env vars, so it is a common pattern to exchange Env vars for values read from a config file.
! PLAINTEXT

```
const config = JSON.parse(readFileSync('./config.json'))
const someConfigValue = config.SomeKey
```
EOF
type = map(string)
default = {}
}

variable "config_file_name" {
description = "The name of the file var.plaintext_params will be written to as json"
type = string
default = "config.json"
}
/* -------------------------------------------------------------------------- */
/* Resource Based Policy */
/* -------------------------------------------------------------------------- */
Expand Down
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ terraform {
source = "hashicorp/archive"
version = ">= 2.0.0"
}
null = {
source = "hashicorp/null"
version = ">= 3.0.0"
}
}
}