-
-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the code of a lambda funtion in AWS console does not get detected by a subsequent terraform run #597
Comments
This issue has been automatically marked as stale because it has been open 30 days |
I could not reproduce this issue. It works like it should, changes are being tracked properly. Please make sure that you do If you would want to not keep track of changes then you can set |
Faced the same issue, doing a change to the code through the AWS Console (directly through the code editor, no zip upload etc.). e.g. for some lambda resource Will give you the updated I guess the |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
Description
Changing the code of a lambda funtion in AWS console does not get detected by a subsequent terraform run.
Versions
Module version [Required]: 7.7.0
Terraform version:
Terraform v1.9.2
Provider version(s):
provider registry.terraform.io/hashicorp/aws v5.59.0
provider registry.terraform.io/hashicorp/external v2.3.3
provider registry.terraform.io/hashicorp/local v2.5.1
provider registry.terraform.io/hashicorp/null v3.2.2
Reproduction Code [Required]
Steps to reproduce the behavior:
Deploy lambda funtion -
terraform apply
Confirm there are no pending changes -
terraform plan
/terraform apply
Change and deploy code in AWS console - e.g. insert a
print("test")
Run
terraform plan
againExpected behavior
A change to source_code_hash should be detected.
Actual behavior
No change is detected.
Additional context
Not sure if this is intended behavior looking at following code but from my perspective it would be useful to have the option to always check for a drift of source_code_hash.
The text was updated successfully, but these errors were encountered: