Skip to content

Commit 0fdd0fc

Browse files
committed
feat: ignore last_modified on aws_lambda_function
Signed-off-by: Edgar Castillo <[email protected]>
1 parent 520c845 commit 0fdd0fc

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ repos:
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each
7+
args:
8+
- "--args=--module-repo-org=gametimesf"
9+
- "--args=--module-repo-shortname=tf-aws-lambda"
710
- id: terraform_docs
811
args:
912
- "--args=--lockfile=false"

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ resource "aws_lambda_function" "this" {
137137
}
138138

139139
tags = merge(
140-
{ terraform-aws-modules = "lambda" },
141140
var.tags,
142141
var.function_tags
143142
)
@@ -164,6 +163,10 @@ resource "aws_lambda_function" "this" {
164163
aws_iam_role_policy_attachment.vpc,
165164
aws_iam_role_policy_attachment.tracing,
166165
]
166+
167+
lifecycle {
168+
ignore_changes = [last_modified]
169+
}
167170
}
168171

169172
resource "aws_lambda_layer_version" "this" {

wrappers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This wrapper does not implement any extra functionality.
1212

1313
```hcl
1414
terraform {
15-
source = "tfr:///terraform-aws-modules/lambda/aws//wrappers"
15+
source = "tfr:///gametimesf/tf-aws-lambda/aws//wrappers"
1616
# Alternative source:
17-
# source = "git::[email protected]:terraform-aws-modules/terraform-aws-lambda.git//wrappers?ref=master"
17+
# source = "git::[email protected]:gametimesf/terraform-aws-tf-aws-lambda.git//wrappers?ref=master"
1818
}
1919
2020
inputs = {
@@ -42,7 +42,7 @@ inputs = {
4242

4343
```hcl
4444
module "wrapper" {
45-
source = "terraform-aws-modules/lambda/aws//wrappers"
45+
source = "gametimesf/tf-aws-lambda/aws//wrappers"
4646
4747
defaults = { # Default values
4848
create = true

wrappers/alias/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This wrapper does not implement any extra functionality.
1212

1313
```hcl
1414
terraform {
15-
source = "tfr:///terraform-aws-modules/lambda/aws//wrappers/alias"
15+
source = "tfr:///gametimesf/tf-aws-lambda/aws//wrappers/alias"
1616
# Alternative source:
17-
# source = "git::[email protected]:terraform-aws-modules/terraform-aws-lambda.git//wrappers/alias?ref=master"
17+
# source = "git::[email protected]:gametimesf/terraform-aws-tf-aws-lambda.git//wrappers/alias?ref=master"
1818
}
1919
2020
inputs = {
@@ -42,7 +42,7 @@ inputs = {
4242

4343
```hcl
4444
module "wrapper" {
45-
source = "terraform-aws-modules/lambda/aws//wrappers/alias"
45+
source = "gametimesf/tf-aws-lambda/aws//wrappers/alias"
4646
4747
defaults = { # Default values
4848
create = true

wrappers/deploy/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This wrapper does not implement any extra functionality.
1212

1313
```hcl
1414
terraform {
15-
source = "tfr:///terraform-aws-modules/lambda/aws//wrappers/deploy"
15+
source = "tfr:///gametimesf/tf-aws-lambda/aws//wrappers/deploy"
1616
# Alternative source:
17-
# source = "git::[email protected]:terraform-aws-modules/terraform-aws-lambda.git//wrappers/deploy?ref=master"
17+
# source = "git::[email protected]:gametimesf/terraform-aws-tf-aws-lambda.git//wrappers/deploy?ref=master"
1818
}
1919
2020
inputs = {
@@ -42,7 +42,7 @@ inputs = {
4242

4343
```hcl
4444
module "wrapper" {
45-
source = "terraform-aws-modules/lambda/aws//wrappers/deploy"
45+
source = "gametimesf/tf-aws-lambda/aws//wrappers/deploy"
4646
4747
defaults = { # Default values
4848
create = true

wrappers/docker-build/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This wrapper does not implement any extra functionality.
1212

1313
```hcl
1414
terraform {
15-
source = "tfr:///terraform-aws-modules/lambda/aws//wrappers/docker-build"
15+
source = "tfr:///gametimesf/tf-aws-lambda/aws//wrappers/docker-build"
1616
# Alternative source:
17-
# source = "git::[email protected]:terraform-aws-modules/terraform-aws-lambda.git//wrappers/docker-build?ref=master"
17+
# source = "git::[email protected]:gametimesf/terraform-aws-tf-aws-lambda.git//wrappers/docker-build?ref=master"
1818
}
1919
2020
inputs = {
@@ -42,7 +42,7 @@ inputs = {
4242

4343
```hcl
4444
module "wrapper" {
45-
source = "terraform-aws-modules/lambda/aws//wrappers/docker-build"
45+
source = "gametimesf/tf-aws-lambda/aws//wrappers/docker-build"
4646
4747
defaults = { # Default values
4848
create = true

0 commit comments

Comments
 (0)