hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

data aws_lambda_function can not get reserved_concurrent_executions at version 4.29.0 #26615

Open ekanai opened 2 years ago

ekanai commented 2 years ago

Community Note

Terraform CLI and Terraform AWS Provider Version

Terraform CLI Version: 1.2.8 Terraform AWS Provider Version: 4.29.0

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

data "aws_lambda_function" "test" {
  function_name = "test"
}

output "test" {
  value = data.aws_lambda_function.test
}
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Terraform AWS Provider Version: 4.29.0

  + test = {
      + architectures                  = [
          + "x86_64",
        ]
      + arn                            = "arn:aws:lambda:xxx"
      + code_signing_config_arn        = ""
      + dead_letter_config             = []
      + description                    = ""
      + environment                    = []
      + ephemeral_storage              = [
          + {
              + size = 512
            },
        ]
      + file_system_config             = []
      + function_name                  = "test"
      + handler                        = "index.handler"
      + id                             = "test"
      + image_uri                      = ""
      + invoke_arn                     = "arn:aws:apigateway:xxx"
      + kms_key_arn                    = ""
      + last_modified                  = "2020-09-14T02:48:42.288+0000"
      + layers                         = []
      + memory_size                    = 128
      + qualified_arn                  = "arn:aws:lambda:xxx"
      + qualifier                      = null
      + reserved_concurrent_executions = -1
      + role                           = "arn:aws:iam::xxx"
      + runtime                        = "nodejs12.x"
      + signing_job_arn                = ""
      + signing_profile_version_arn    = ""
      + source_code_hash               = "xxx"
      + source_code_size               = 1988121
      + tags                           = {}
      + timeout                        = 60
      + tracing_config                 = [
          + {
              + mode = "Active"
            },
        ]
      + version                        = "9"
      + vpc_config                     = []
    }

Terraform AWS Provider Version: 4.28.0

  + test = {
      + architectures                  = [
          + "x86_64",
        ]
      + arn                            = "arn:aws:lambda:xxx"
      + code_signing_config_arn        = ""
      + dead_letter_config             = []
      + description                    = ""
      + environment                    = []
      + ephemeral_storage              = [
          + {
              + size = 512
            },
        ]
      + file_system_config             = []
      + function_name                  = "test"
      + handler                        = "index.handler"
      + id                             = "test"
      + image_uri                      = ""
      + invoke_arn                     = "arn:aws:apigateway:xxx"
      + kms_key_arn                    = ""
      + last_modified                  = "2020-09-14T02:48:42.288+0000"
      + layers                         = []
      + memory_size                    = 128
      + qualified_arn                  = "arn:aws:lambda:xxx:$LATEST"
      + qualifier                      = null
      + reserved_concurrent_executions = 30
      + role                           = "arn:aws:iam::xxx
      + runtime                        = "nodejs12.x"
      + signing_job_arn                = ""
      + signing_profile_version_arn    = ""
      + source_code_hash               = "xxx"
      + source_code_size               = 1988121
      + tags                           = {
          + "STAGE" = "production"
        }
      + timeout                        = 60
      + tracing_config                 = [
          + {
              + mode = "Active"
            },
        ]
      + version                        = "$LATEST"
      + vpc_config                     = []
    }

Expected Behavior

I can get reserved_concurrent_executions.

Actual Behavior

I can not get reserved_concurrent_executions. reserved_concurrent_executions is set to -1.

Steps to Reproduce

  1. terraform plan

Important Factoids

As of version 4.28.0 i can get reserved_concurrent_executions.

github-actions[bot] commented 1 week ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!