Comments (2)
Looks like this is actually related to hashicorp/terraform-provider-aws#29085
The last_modified
value changes on each Terraform run for unknown reasons, which is why most modules that wrap aws_lambda_function
ignore that with a lifecycle block.
I tested removing the filename
attribute from this module, only leaving s3_key
and s3_object
(as that's what I need for my use case), and I removed the lifecycle block. The result is that Terraform detected drift on each run for unknown reasons. The last_modified
changes every time Terraform runs.
# module.foo.module.lambda_changes.aws_lambda_function.this[0] will be updated in-place
~ resource "aws_lambda_function" "this" {
id = "test"
~ last_modified = "2023-10-05T21:55:22.433+0000" -> (known after apply)
tags = {}
# (23 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
So, because of the bug I linked above, it's good that this module ignores last_modified
. But an unfortunate side-effect of that on modern Terraform versions is the Warning seen in this bug post.
from terraform-aws-lambda-function.
Is there any workaround to get rid of this warning message ?
from terraform-aws-lambda-function.
Related Issues (13)
- Dependency Dashboard
- Attach policies to lambda execution role HOT 1
- Allow adding permission directly to the execution role HOT 1
- VPC execution role not attached HOT 2
- Incorrect assume_role policy when enabling lambda_at_edge
- Invalid for_each argument for aws_iam_role_policy_attachment.custom HOT 2
- Enabling `lambda_at_edge` does not enable `publish`
- ignore_external_function_updates is not used
- Example about `cloudwatch_event_rules`
- Error: error creating Lambda Function (1): AccessDeniedException:
- Churn with `aws_iam_role.this` HOT 1
- Allow for custom_iam_policy_arns that are unknown during terraform apply
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-lambda-function.