Skip to content

[Bug fix] aws_lambda_function: Suppress false persistent diffs on log levels when logging_format = "JSON" and publish = true #42660

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tabito-hara
Copy link
Contributor

@tabito-hara tabito-hara commented May 17, 2025

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

  • When logging_format in logging_config is set to JSON and publish is true, persistent diffs appear. This PR fixes that issue.

    • If log levels (application_log_level and system_log_level) are not explicitly specified, the AWS API response for describing Lambda functions differs depending on the logging_format. When the format is Text, the default log level is an empty string (""), but when the format is JSON, the default is "INFO".
    • When logging_format is JSON, the log level in the Terraform state is refreshed to "INFO", causing Terraform to plan an update to reset it back to the default value of "".
    • This diff was already suppressed in the plan output by the DiffSuppressFunc introduced in Resolve logging_config consecutive diff issue #35694.
    • However, when publish is true, Terraform determines whether to update version, qualified_arn, and qualified_invoke_arn using d.HasChange() for each argument. The issue is that d.HasChange() does not take DiffSuppressFunc into account—it only checks for literal differences in the argument values.
  • The function that determines whether a new version should be published now incorporates the logic of DiffSuppressFunc for log levels.

  • The newly added acceptance tests verify that no plan diffs occur when log levels remain unchanged.

  • See also aws_lambda_function perpetual difference when log_format is set to JSON #42181 (comment)

Relations

Closes #42181
Closes #41065
Relates #35694

Output from Acceptance Testing

$ make testacc TESTS=TestAccLambdaFunction_ PKG=lambda              
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.9 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaFunction_'  -timeout 360m -vet=off
2025/05/18 01:55:35 Initializing Terraform AWS Provider...
=== RUN   TestAccLambdaFunction_tags
=== PAUSE TestAccLambdaFunction_tags
=== RUN   TestAccLambdaFunction_tags_null
=== PAUSE TestAccLambdaFunction_tags_null
=== RUN   TestAccLambdaFunction_tags_EmptyMap
=== PAUSE TestAccLambdaFunction_tags_EmptyMap
=== RUN   TestAccLambdaFunction_tags_AddOnUpdate
=== PAUSE TestAccLambdaFunction_tags_AddOnUpdate
=== RUN   TestAccLambdaFunction_tags_EmptyTag_OnCreate
=== PAUSE TestAccLambdaFunction_tags_EmptyTag_OnCreate
=== RUN   TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add
=== PAUSE TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add
=== RUN   TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace
=== PAUSE TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace
=== RUN   TestAccLambdaFunction_tags_DefaultTags_providerOnly
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_providerOnly
=== RUN   TestAccLambdaFunction_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_nonOverlapping
=== RUN   TestAccLambdaFunction_tags_DefaultTags_overlapping
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_overlapping
=== RUN   TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly
=== RUN   TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly
=== RUN   TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag
=== RUN   TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag
=== RUN   TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag
=== RUN   TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag
=== PAUSE TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag
=== RUN   TestAccLambdaFunction_tags_ComputedTag_OnCreate
=== PAUSE TestAccLambdaFunction_tags_ComputedTag_OnCreate
=== RUN   TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add
=== PAUSE TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add
=== RUN   TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace
=== PAUSE TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace
=== RUN   TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag
=== PAUSE TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag
=== RUN   TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag
=== PAUSE TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag
=== RUN   TestAccLambdaFunction_basic
=== PAUSE TestAccLambdaFunction_basic
=== RUN   TestAccLambdaFunction_disappears
=== PAUSE TestAccLambdaFunction_disappears
=== RUN   TestAccLambdaFunction_unpublishedCodeUpdate
=== PAUSE TestAccLambdaFunction_unpublishedCodeUpdate
=== RUN   TestAccLambdaFunction_codeSigning
=== PAUSE TestAccLambdaFunction_codeSigning
=== RUN   TestAccLambdaFunction_concurrency
=== PAUSE TestAccLambdaFunction_concurrency
=== RUN   TestAccLambdaFunction_concurrencyCycle
=== PAUSE TestAccLambdaFunction_concurrencyCycle
=== RUN   TestAccLambdaFunction_expectFilenameAndS3Attributes
=== PAUSE TestAccLambdaFunction_expectFilenameAndS3Attributes
=== RUN   TestAccLambdaFunction_envVariables
=== PAUSE TestAccLambdaFunction_envVariables
=== RUN   TestAccLambdaFunction_EnvironmentVariables_noValue
=== PAUSE TestAccLambdaFunction_EnvironmentVariables_noValue
=== RUN   TestAccLambdaFunction_EnvironmentVariables_emptyUpgrade
=== PAUSE TestAccLambdaFunction_EnvironmentVariables_emptyUpgrade
=== RUN   TestAccLambdaFunction_encryptedEnvVariables
=== PAUSE TestAccLambdaFunction_encryptedEnvVariables
=== RUN   TestAccLambdaFunction_nameValidation
=== PAUSE TestAccLambdaFunction_nameValidation
=== RUN   TestAccLambdaFunction_versioned
=== PAUSE TestAccLambdaFunction_versioned
=== RUN   TestAccLambdaFunction_versionedUpdate
=== PAUSE TestAccLambdaFunction_versionedUpdate
=== RUN   TestAccLambdaFunction_enablePublish
=== PAUSE TestAccLambdaFunction_enablePublish
=== RUN   TestAccLambdaFunction_disablePublish
=== PAUSE TestAccLambdaFunction_disablePublish
=== RUN   TestAccLambdaFunction_deadLetter
=== PAUSE TestAccLambdaFunction_deadLetter
=== RUN   TestAccLambdaFunction_deadLetterUpdated
=== PAUSE TestAccLambdaFunction_deadLetterUpdated
=== RUN   TestAccLambdaFunction_nilDeadLetter
=== PAUSE TestAccLambdaFunction_nilDeadLetter
=== RUN   TestAccLambdaFunction_fileSystem
=== PAUSE TestAccLambdaFunction_fileSystem
=== RUN   TestAccLambdaFunction_image
    function_test.go:932: Environment variable AWS_LAMBDA_IMAGE_LATEST_ID is not set
--- SKIP: TestAccLambdaFunction_image (0.00s)
=== RUN   TestAccLambdaFunction_architectures
=== PAUSE TestAccLambdaFunction_architectures
=== RUN   TestAccLambdaFunction_architecturesUpdate
=== PAUSE TestAccLambdaFunction_architecturesUpdate
=== RUN   TestAccLambdaFunction_architecturesWithLayer
=== PAUSE TestAccLambdaFunction_architecturesWithLayer
=== RUN   TestAccLambdaFunction_ephemeralStorage
=== PAUSE TestAccLambdaFunction_ephemeralStorage
=== RUN   TestAccLambdaFunction_loggingConfig
=== PAUSE TestAccLambdaFunction_loggingConfig
=== RUN   TestAccLambdaFunction_loggingConfigWithPublish
=== PAUSE TestAccLambdaFunction_loggingConfigWithPublish
=== RUN   TestAccLambdaFunction_tracing
=== PAUSE TestAccLambdaFunction_tracing
=== RUN   TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
=== PAUSE TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
=== RUN   TestAccLambdaFunction_layers
=== PAUSE TestAccLambdaFunction_layers
=== RUN   TestAccLambdaFunction_layersUpdate
=== PAUSE TestAccLambdaFunction_layersUpdate
=== RUN   TestAccLambdaFunction_vpc
=== PAUSE TestAccLambdaFunction_vpc
=== RUN   TestAccLambdaFunction_vpcRemoval
=== PAUSE TestAccLambdaFunction_vpcRemoval
=== RUN   TestAccLambdaFunction_vpcUpdate
=== PAUSE TestAccLambdaFunction_vpcUpdate
=== RUN   TestAccLambdaFunction_VPC_withInvocation
=== PAUSE TestAccLambdaFunction_VPC_withInvocation
=== RUN   TestAccLambdaFunction_VPCPublishNo_changes
=== PAUSE TestAccLambdaFunction_VPCPublishNo_changes
=== RUN   TestAccLambdaFunction_VPCPublishHas_changes
=== PAUSE TestAccLambdaFunction_VPCPublishHas_changes
=== RUN   TestAccLambdaFunction_VPC_properIAMDependencies
=== PAUSE TestAccLambdaFunction_VPC_properIAMDependencies
=== RUN   TestAccLambdaFunction_VPC_replaceSGWithDefault
=== PAUSE TestAccLambdaFunction_VPC_replaceSGWithDefault
=== RUN   TestAccLambdaFunction_VPC_replaceSGWithCustom
=== PAUSE TestAccLambdaFunction_VPC_replaceSGWithCustom
=== RUN   TestAccLambdaFunction_emptyVPC
=== PAUSE TestAccLambdaFunction_emptyVPC
=== RUN   TestAccLambdaFunction_s3
=== PAUSE TestAccLambdaFunction_s3
=== RUN   TestAccLambdaFunction_localUpdate
=== PAUSE TestAccLambdaFunction_localUpdate
=== RUN   TestAccLambdaFunction_LocalUpdate_nameOnly
=== PAUSE TestAccLambdaFunction_LocalUpdate_nameOnly
=== RUN   TestAccLambdaFunction_S3Update_basic
=== PAUSE TestAccLambdaFunction_S3Update_basic
=== RUN   TestAccLambdaFunction_S3Update_unversioned
=== PAUSE TestAccLambdaFunction_S3Update_unversioned
=== RUN   TestAccLambdaFunction_snapStart
=== PAUSE TestAccLambdaFunction_snapStart
=== RUN   TestAccLambdaFunction_runtimes
=== PAUSE TestAccLambdaFunction_runtimes
=== RUN   TestAccLambdaFunction_Zip_validation
=== PAUSE TestAccLambdaFunction_Zip_validation
=== RUN   TestAccLambdaFunction_ipv6AllowedForDualStack
=== PAUSE TestAccLambdaFunction_ipv6AllowedForDualStack
=== RUN   TestAccLambdaFunction_skipDestroy
=== PAUSE TestAccLambdaFunction_skipDestroy
=== RUN   TestAccLambdaFunction_skipDestroyInconsistentPlan
=== PAUSE TestAccLambdaFunction_skipDestroyInconsistentPlan
=== CONT  TestAccLambdaFunction_tags
=== CONT  TestAccLambdaFunction_architecturesUpdate
=== CONT  TestAccLambdaFunction_VPC_properIAMDependencies
=== CONT  TestAccLambdaFunction_Zip_validation
=== CONT  TestAccLambdaFunction_layersUpdate
=== CONT  TestAccLambdaFunction_loggingConfigWithPublish
=== CONT  TestAccLambdaFunction_VPCPublishHas_changes
=== CONT  TestAccLambdaFunction_VPCPublishNo_changes
=== CONT  TestAccLambdaFunction_VPC_withInvocation
=== CONT  TestAccLambdaFunction_S3Update_unversioned
=== CONT  TestAccLambdaFunction_skipDestroyInconsistentPlan
=== CONT  TestAccLambdaFunction_skipDestroy
=== CONT  TestAccLambdaFunction_ipv6AllowedForDualStack
=== CONT  TestAccLambdaFunction_layers
=== CONT  TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
=== CONT  TestAccLambdaFunction_tracing
=== CONT  TestAccLambdaFunction_vpcRemoval
=== CONT  TestAccLambdaFunction_vpcUpdate
=== CONT  TestAccLambdaFunction_s3
=== CONT  TestAccLambdaFunction_vpc
=== NAME  TestAccLambdaFunction_skipDestroyInconsistentPlan
    function_test.go:2347: Step 1/2 error: Error running pre-apply plan: exit status 1
        
        Error: expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x nodejs16.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 dotnet6 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2 nodejs18.x], got nodejs20.x
        
          with aws_lambda_function.test,
          on terraform_plugin_test.tf line 162, in resource "aws_lambda_function" "test":
         162:   runtime       = "nodejs20.x"
        
--- FAIL: TestAccLambdaFunction_skipDestroyInconsistentPlan (12.11s)
=== CONT  TestAccLambdaFunction_S3Update_basic
--- PASS: TestAccLambdaFunction_Zip_validation (13.68s)
=== CONT  TestAccLambdaFunction_LocalUpdate_nameOnly
--- PASS: TestAccLambdaFunction_s3 (43.79s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly
--- PASS: TestAccLambdaFunction_skipDestroy (54.47s)
=== CONT  TestAccLambdaFunction_localUpdate
--- PASS: TestAccLambdaFunction_S3Update_unversioned (68.25s)
=== CONT  TestAccLambdaFunction_VPC_replaceSGWithCustom
--- PASS: TestAccLambdaFunction_S3Update_basic (65.88s)
=== CONT  TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccLambdaFunction_tracing (84.30s)
=== CONT  TestAccLambdaFunction_emptyVPC
--- PASS: TestAccLambdaFunction_tags (104.99s)
=== CONT  TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag
--- PASS: TestAccLambdaFunction_loggingConfigWithPublish (186.53s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccLambdaFunction_VPC_properIAMDependencies (279.75s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables (281.62s)
=== CONT  TestAccLambdaFunction_basic
--- PASS: TestAccLambdaFunction_layers (287.63s)
=== CONT  TestAccLambdaFunction_architectures
--- PASS: TestAccLambdaFunction_layersUpdate (295.28s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccLambdaFunction_VPC_withInvocation (836.46s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccLambdaFunction_VPCPublishHas_changes (889.60s)
=== CONT  TestAccLambdaFunction_fileSystem
--- PASS: TestAccLambdaFunction_vpcUpdate (1051.46s)
=== CONT  TestAccLambdaFunction_nilDeadLetter
--- PASS: TestAccLambdaFunction_vpcRemoval (1070.84s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccLambdaFunction_VPCPublishNo_changes (1559.98s)
=== CONT  TestAccLambdaFunction_deadLetterUpdated
--- PASS: TestAccLambdaFunction_architecturesUpdate (1599.76s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnCreate
--- PASS: TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly (1563.87s)
=== CONT  TestAccLambdaFunction_deadLetter
--- PASS: TestAccLambdaFunction_emptyVPC (1716.05s)
=== CONT  TestAccLambdaFunction_VPC_replaceSGWithDefault
--- PASS: TestAccLambdaFunction_vpc (1808.36s)
=== CONT  TestAccLambdaFunction_disablePublish
--- PASS: TestAccLambdaFunction_ipv6AllowedForDualStack (1814.22s)
=== CONT  TestAccLambdaFunction_ephemeralStorage
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag (1628.02s)
=== CONT  TestAccLambdaFunction_enablePublish
--- PASS: TestAccLambdaFunction_LocalUpdate_nameOnly (1802.79s)
=== CONT  TestAccLambdaFunction_loggingConfig
--- PASS: TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag (1749.43s)
=== CONT  TestAccLambdaFunction_versionedUpdate
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag (1549.89s)
=== CONT  TestAccLambdaFunction_versioned
--- PASS: TestAccLambdaFunction_basic (1554.47s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace
--- PASS: TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag (1732.43s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly
--- PASS: TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag (1552.48s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_overlapping
--- PASS: TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag (1017.57s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nonOverlapping
--- PASS: TestAccLambdaFunction_architectures (1569.65s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_providerOnly
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithCustom (1922.46s)
=== CONT  TestAccLambdaFunction_tags_AddOnUpdate
--- PASS: TestAccLambdaFunction_nilDeadLetter (975.62s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccLambdaFunction_localUpdate (1999.19s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnCreate
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add (992.10s)
=== CONT  TestAccLambdaFunction_tags_null
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnCreate (466.21s)
=== CONT  TestAccLambdaFunction_runtimes
--- PASS: TestAccLambdaFunction_deadLetterUpdated (513.66s)
=== CONT  TestAccLambdaFunction_tags_EmptyMap
--- PASS: TestAccLambdaFunction_deadLetter (487.12s)
=== CONT  TestAccLambdaFunction_architecturesWithLayer
--- PASS: TestAccLambdaFunction_disablePublish (469.79s)
=== CONT  TestAccLambdaFunction_nameValidation
--- PASS: TestAccLambdaFunction_nameValidation (0.69s)
=== CONT  TestAccLambdaFunction_concurrencyCycle
--- PASS: TestAccLambdaFunction_ephemeralStorage (476.21s)
=== CONT  TestAccLambdaFunction_expectFilenameAndS3Attributes
--- PASS: TestAccLambdaFunction_expectFilenameAndS3Attributes (0.98s)
=== CONT  TestAccLambdaFunction_concurrency
--- PASS: TestAccLambdaFunction_versioned (468.63s)
=== CONT  TestAccLambdaFunction_encryptedEnvVariables
--- PASS: TestAccLambdaFunction_enablePublish (493.48s)
=== CONT  TestAccLambdaFunction_EnvironmentVariables_emptyUpgrade
    function_test.go:436: Step 1/3 error: Error running pre-apply plan: exit status 1
        
        Error: expected runtime to be one of [nodejs nodejs4.3 nodejs6.10 nodejs8.10 nodejs10.x nodejs12.x nodejs14.x nodejs16.x java8 java8.al2 java11 python2.7 python3.6 python3.7 python3.8 python3.9 dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 dotnet6 nodejs4.3-edge go1.x ruby2.5 ruby2.7 provided provided.al2 nodejs18.x], got nodejs20.x
        
          with aws_lambda_function.test,
          on terraform_plugin_test.tf line 162, in resource "aws_lambda_function" "test":
         162:   runtime       = "nodejs20.x"
        
--- FAIL: TestAccLambdaFunction_EnvironmentVariables_emptyUpgrade (6.61s)
=== CONT  TestAccLambdaFunction_codeSigning
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace (486.67s)
=== CONT  TestAccLambdaFunction_unpublishedCodeUpdate
--- PASS: TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly (495.37s)
=== CONT  TestAccLambdaFunction_EnvironmentVariables_noValue
--- PASS: TestAccLambdaFunction_loggingConfig (529.77s)
=== CONT  TestAccLambdaFunction_disappears
--- PASS: TestAccLambdaFunction_tags_AddOnUpdate (370.05s)
=== CONT  TestAccLambdaFunction_envVariables
--- PASS: TestAccLambdaFunction_tags_null (307.81s)
=== CONT  TestAccLambdaFunction_snapStart
--- PASS: TestAccLambdaFunction_tags_DefaultTags_overlapping (527.24s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnCreate (327.74s)
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nonOverlapping (528.64s)
--- PASS: TestAccLambdaFunction_tags_EmptyMap (313.49s)
--- PASS: TestAccLambdaFunction_fileSystem (1504.59s)
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add (368.66s)
--- PASS: TestAccLambdaFunction_tags_DefaultTags_providerOnly (559.26s)
--- PASS: TestAccLambdaFunction_concurrency (133.46s)
--- PASS: TestAccLambdaFunction_versionedUpdate (599.49s)
--- PASS: TestAccLambdaFunction_concurrencyCycle (151.87s)
--- PASS: TestAccLambdaFunction_EnvironmentVariables_noValue (99.19s)
--- PASS: TestAccLambdaFunction_disappears (88.63s)
--- PASS: TestAccLambdaFunction_codeSigning (138.30s)
--- PASS: TestAccLambdaFunction_architecturesWithLayer (361.63s)
--- PASS: TestAccLambdaFunction_encryptedEnvVariables (160.29s)
--- PASS: TestAccLambdaFunction_unpublishedCodeUpdate (144.43s)
--- PASS: TestAccLambdaFunction_snapStart (99.70s)
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace (98.97s)
--- PASS: TestAccLambdaFunction_envVariables (145.61s)
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithDefault (741.60s)
--- PASS: TestAccLambdaFunction_runtimes (831.22s)
FAIL
FAIL    github.com/hashicorp/terraform-provider-aws/internal/service/lambda     2901.316s
FAIL
make: *** [testacc] Error 1

Copy link

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/lambda Issues and PRs that pertain to the lambda service. size/L Managed by automation to categorize the size of a PR. labels May 17, 2025
@tabito-hara tabito-hara changed the title [Bug fix] aws_lambda_function: suppress diffs from log levels when publish is true [Bug fix] aws_lambda_function: Suppress false permanent diffs on log levels when logging_format = "JSON" and publish = true May 17, 2025
@tabito-hara tabito-hara changed the title [Bug fix] aws_lambda_function: Suppress false permanent diffs on log levels when logging_format = "JSON" and publish = true [Bug fix] aws_lambda_function: Suppress false persistent diffs on log levels when logging_format = "JSON" and publish = true May 17, 2025
@tabito-hara tabito-hara marked this pull request as ready for review May 17, 2025 17:37
@tabito-hara tabito-hara requested a review from a team as a code owner May 17, 2025 17:37
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/lambda Issues and PRs that pertain to the lambda service. size/L Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
2 participants