Skip to content

Commit b528b73

Browse files
authored
fix: tf detect changes (#21)
1 parent 68bf2e6 commit b528b73

File tree

4 files changed

+17
-20
lines changed

4 files changed

+17
-20
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

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

5+
## [v1.2.2] - 2023-11-20
6+
7+
### Changed
8+
9+
- Resolved an issue with Terraform apply process
10+
- From function(data) `base64sha256(data.archive_file.this.output_path)` to use data.output `data.archive_file.this.output_base64sha256`
11+
- Set null resource provider version `>= 3.0.0`
12+
13+
### Removed
14+
15+
- Unused variables `plaintext_params` and `config_file_name`
16+
517
## [v1.2.1] - 2023-10-19
618

719
### Changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ resource "aws_lambda_function" "this" {
256256

257257
# Read source code from local
258258
filename = local.file_name
259-
source_code_hash = base64sha256(data.archive_file.this.output_path)
259+
source_code_hash = data.archive_file.this.output_base64sha256
260260

261261
# Specification
262262
timeout = var.timeout

variables.tf

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,6 @@ variable "source_code_dir" {
4343
default = ""
4444
}
4545

46-
variable "plaintext_params" {
47-
description = <<EOF
48-
Lambda@Edge does not support env vars, so it is a common pattern to exchange Env vars for values read from a config file.
49-
! PLAINTEXT
50-
51-
```
52-
const config = JSON.parse(readFileSync('./config.json'))
53-
const someConfigValue = config.SomeKey
54-
```
55-
EOF
56-
type = map(string)
57-
default = {}
58-
}
59-
60-
variable "config_file_name" {
61-
description = "The name of the file var.plaintext_params will be written to as json"
62-
type = string
63-
default = "config.json"
64-
}
6546
/* -------------------------------------------------------------------------- */
6647
/* Resource Based Policy */
6748
/* -------------------------------------------------------------------------- */

versions.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ terraform {
1010
source = "hashicorp/archive"
1111
version = ">= 2.0.0"
1212
}
13+
null = {
14+
source = "hashicorp/null"
15+
version = ">= 3.0.0"
16+
}
1317
}
1418
}

0 commit comments

Comments
 (0)