Closed oleksandrsv closed 4 months ago
result of apply: `Releasing state lock. This may take a few moments...
Apply complete! Resources: 6 added, 2 changed, 2 destroyed.
Outputs:
aws_sso_elevator_lambda_function_url = "https://*.lambda-url.us-east-1.on.aws/"`
And then plan:
`No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. Releasing state lock. This may take a few moments...`
Removing cache:
➜ ls -la total 24 drwxr-xr-x 5 oleksandr staff 160 Oct 20 17:13 . drwxr-xr-x 46 oleksandr staff 1472 Nov 9 20:02 .. -rw-r--r-- 1 oleksandr staff 5741 Nov 9 20:22 .terraform.lock.hcl drwx------ 3 oleksandr staff 96 Oct 10 12:14 .terragrunt-cache -rw-r--r-- 1 oleksandr staff 979 Nov 9 20:21 terragrunt.hcl ➜ rm -rf .terraform.lock.hcl ➜ rm -rf .terragrunt-cache ➜ ls -la total 8 drwxr-xr-x 3 oleksandr staff 96 Nov 9 21:56 . drwxr-xr-x 46 oleksandr staff 1472 Nov 9 20:02 .. -rw-r--r-- 1 oleksandr staff 979 Nov 9 20:21 terragrunt.hcl
Running plan:
# module.aws_sso_elevator.module.access_requester_slack_handler.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "1499301416522525763" -> (known after apply)
~ triggers = { # forces replacement
~ "timestamp" = "1699559646967497200" -> "1699559899453123000"
# (1 unchanged element hidden)
}
}
# module.aws_sso_elevator.module.access_revoker.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "4878218948847264937" -> (known after apply)
~ triggers = { # forces replacement
~ "timestamp" = "1699559646967499000" -> "1699559899454879000"
# (1 unchanged element hidden)
}
}
# module.aws_sso_elevator.module.sso_elevator_dependencies.null_resource.archive[0] must be replaced
-/+ resource "null_resource" "archive" {
~ id = "6951739542518006098" -> (known after apply)
~ triggers = { # forces replacement
~ "timestamp" = "1696931179495508000" -> "1699559899455141000"
# (1 unchanged element hidden)
}
}
Plan: 3 to add, 0 to change, 3 to destroy.
@oleksandrsv, thanks for reporting this. The issue originates from the open-source lambda module we use inside to create lambdas. Here you can find a similar issue reported to the module https://github.com/terraform-aws-modules/terraform-aws-lambda/issues/339
Let us look into what we can do but can't promise anything at the moment
To be addressed in #75
@oleksandrsv we implemented the use of pre-build docker images that will remove the local build and should solve the issue you reported
Hi, if I apply locally - Terraform sees no difference with remote state. All resources are present in state. But if I remove local cache and then try to run plan - terraform wants to replace everything.
My guess is this causing:
Other changes are triggered by above change:
I have found that changing source.content instead of the local filepath could possibly be a solution for it, but I didn't manage to find how this archive is created.