terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
886 stars 656 forks source link

Provider produced inconsistent final plan : Update kreuzwerker/docker to version >3 #466

Closed filol closed 1 year ago

filol commented 1 year ago

Description

While using this module i'm hiting a bug : Provider produced inconsistent final plan (see https://github.com/kreuzwerker/terraform-provider-docker/issues/288) in the provider kreuzwerker/docker that is fixed in the version 3

There is my usage :

resource "null_resource" "copy_layer" {
  provisioner "local-exec" {
    command = "cp ${abspath(module.lambda_layer_utils.local_filename)} ${path.module}/../lambdas/xxx/utils-layer.zip"
  }
}

module "docker_image_lambda" {
  source   = "terraform-aws-modules/lambda/aws//modules/docker-build"
  version  = "4.18.0"

  create_ecr_repo = true
  scan_on_push    = true
  ecr_repo        = "xxx"
  source_path     = "${path.module}/../lambdas/xxx"

  build_args = {
    UTILBOX_LAYER = "utils-layer.zip"
  }
}

Solution

Seem's to upgrade the provider kreuzwerker/docker

antonbabenko commented 1 year ago

This issue has been resolved in version 5.0.0 :tada:

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.