Skip to content

Conversation

@sasidhar-aws
Copy link
Contributor

@sasidhar-aws sasidhar-aws commented Nov 20, 2025

Rollback Plan

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

Changes to Security Controls

No changes to security controls.

Description

Adding support of tenant isolation for lambda function creation and invocation.

Relations

Closes #45166

References

AWS Lambda announces new tenant isolation mode to simplify building tenant-aware applications
Announcement
Blog post
Requires AWS SDK for Go v2 Release 2025-11-19: #45144.

Output from Acceptance Testing

make testacc TESTS=TestAccLambdaFunction_tenancyConfig PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 main 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaFunction_tenancyConfig'  -timeout 360m -vet=off
2025/11/20 12:20:33 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:20:34 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaFunction_tenancyConfig
=== PAUSE TestAccLambdaFunction_tenancyConfig
=== RUN   TestAccLambdaFunction_tenancyConfigForceNew
=== PAUSE TestAccLambdaFunction_tenancyConfigForceNew
=== CONT  TestAccLambdaFunction_tenancyConfig
=== CONT  TestAccLambdaFunction_tenancyConfigForceNew
--- PASS: TestAccLambdaFunction_tenancyConfig (256.51s)
--- PASS: TestAccLambdaFunction_tenancyConfigForceNew (357.63s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lambda     363.611s


make testacc TESTS=TestAccLambdaFunctionDataSource_tenancyConfig PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 main 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaFunctionDataSource_tenancyConfig'  -timeout 360m -vet=off
2025/11/20 12:28:12 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:28:12 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaFunctionDataSource_tenancyConfig
=== PAUSE TestAccLambdaFunctionDataSource_tenancyConfig
=== CONT  TestAccLambdaFunctionDataSource_tenancyConfig
--- PASS: TestAccLambdaFunctionDataSource_tenancyConfig (123.03s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lambda     128.680s

make testacc TESTS=TestAccLambdaInvocation_tenantID PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 main 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaInvocation_tenantID'  -timeout 360m -vet=off
2025/11/20 12:15:44 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:15:44 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaInvocation_tenantID
=== PAUSE TestAccLambdaInvocation_tenantID
=== CONT  TestAccLambdaInvocation_tenantID
--- PASS: TestAccLambdaInvocation_tenantID (181.47s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lambda     189.285s


make testacc TESTS=TestAccLambdaInvocationDataSource_tenantId PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 main 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaInvocationDataSource_tenantId'  -timeout 360m -vet=off
2025/11/20 12:32:47 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:32:47 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaInvocationDataSource_tenantId
=== PAUSE TestAccLambdaInvocationDataSource_tenantId
=== CONT  TestAccLambdaInvocationDataSource_tenantId
--- PASS: TestAccLambdaInvocationDataSource_tenantId (147.44s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lambda     154.634s

make testacc TESTS=TestAccLambdaInvokeAction_tenantId PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 f_lambda_tenancy 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run='TestAccLambdaInvokeAction_tenantId'  -timeout 360m -vet=off
2025/11/20 12:53:47 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/20 12:53:47 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaInvokeAction_tenantId
=== PAUSE TestAccLambdaInvokeAction_tenantId
=== CONT  TestAccLambdaInvokeAction_tenantId
    invoke_action_test.go:221: Terraform CLI version 1.6.4 is below minimum version 1.14.0: skipping test
--- SKIP: TestAccLambdaInvokeAction_tenantId (0.71s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/lambda     6.392s

@sasidhar-aws sasidhar-aws requested a review from a team as a code owner November 20, 2025 17:40
@github-actions
Copy link
Contributor

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
Copy link
Contributor

github-actions bot commented Nov 20, 2025

✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/lambda Issues and PRs that pertain to the lambda service. size/XL Managed by automation to categorize the size of a PR. partner Contribution from a partner. labels Nov 20, 2025
@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 21, 2025
@ewbankkit ewbankkit self-assigned this Nov 21, 2025
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Nov 21, 2025
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccLambdaFunctionDataSource_\|TestAccLambdaFunction_\|TestAccLambdaInvocationDataSource_\|TestAccLambdaInvocation_' PKG=lambda ACCTEST_PARALLELISM=5
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 HEAD 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/lambda/... -v -count 1 -parallel 5  -run=TestAccLambdaFunctionDataSource_\|TestAccLambdaFunction_\|TestAccLambdaInvocationDataSource_\|TestAccLambdaInvocation_ -timeout 360m -vet=off
2025/11/21 15:49:49 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/21 15:49:49 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccLambdaFunctionDataSource_tags
=== PAUSE TestAccLambdaFunctionDataSource_tags
=== RUN   TestAccLambdaFunctionDataSource_tags_NullMap
=== PAUSE TestAccLambdaFunctionDataSource_tags_NullMap
=== RUN   TestAccLambdaFunctionDataSource_tags_EmptyMap
=== PAUSE TestAccLambdaFunctionDataSource_tags_EmptyMap
=== RUN   TestAccLambdaFunctionDataSource_tags_DefaultTags_nonOverlapping
=== PAUSE TestAccLambdaFunctionDataSource_tags_DefaultTags_nonOverlapping
=== RUN   TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_DefaultTag
=== PAUSE TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_DefaultTag
=== RUN   TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_ResourceTag
=== PAUSE TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_ResourceTag
=== RUN   TestAccLambdaFunctionDataSource_basic
=== PAUSE TestAccLambdaFunctionDataSource_basic
=== RUN   TestAccLambdaFunctionDataSource_version
=== PAUSE TestAccLambdaFunctionDataSource_version
=== RUN   TestAccLambdaFunctionDataSource_versionWithReservedConcurrency
=== PAUSE TestAccLambdaFunctionDataSource_versionWithReservedConcurrency
=== RUN   TestAccLambdaFunctionDataSource_latestVersion
=== PAUSE TestAccLambdaFunctionDataSource_latestVersion
=== RUN   TestAccLambdaFunctionDataSource_unpublishedVersion
=== PAUSE TestAccLambdaFunctionDataSource_unpublishedVersion
=== RUN   TestAccLambdaFunctionDataSource_alias
=== PAUSE TestAccLambdaFunctionDataSource_alias
=== RUN   TestAccLambdaFunctionDataSource_layers
=== PAUSE TestAccLambdaFunctionDataSource_layers
=== RUN   TestAccLambdaFunctionDataSource_vpc
=== PAUSE TestAccLambdaFunctionDataSource_vpc
=== RUN   TestAccLambdaFunctionDataSource_environment
=== PAUSE TestAccLambdaFunctionDataSource_environment
=== RUN   TestAccLambdaFunctionDataSource_fileSystem
=== PAUSE TestAccLambdaFunctionDataSource_fileSystem
=== RUN   TestAccLambdaFunctionDataSource_image
=== PAUSE TestAccLambdaFunctionDataSource_image
=== RUN   TestAccLambdaFunctionDataSource_architectures
=== PAUSE TestAccLambdaFunctionDataSource_architectures
=== RUN   TestAccLambdaFunctionDataSource_ephemeralStorage
=== PAUSE TestAccLambdaFunctionDataSource_ephemeralStorage
=== RUN   TestAccLambdaFunctionDataSource_loggingConfig
=== PAUSE TestAccLambdaFunctionDataSource_loggingConfig
=== RUN   TestAccLambdaFunctionDataSource_tenancyConfig
=== PAUSE TestAccLambdaFunctionDataSource_tenancyConfig
=== RUN   TestAccLambdaFunction_Identity_Basic
=== PAUSE TestAccLambdaFunction_Identity_Basic
=== RUN   TestAccLambdaFunction_Identity_RegionOverride
=== PAUSE TestAccLambdaFunction_Identity_RegionOverride
=== RUN   TestAccLambdaFunction_Identity_ExistingResource
=== PAUSE TestAccLambdaFunction_Identity_ExistingResource
=== RUN   TestAccLambdaFunction_Identity_ExistingResource_NoRefresh_NoChange
=== PAUSE TestAccLambdaFunction_Identity_ExistingResource_NoRefresh_NoChange
=== 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_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:905: 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_LocalUpdate_publish
=== PAUSE TestAccLambdaFunction_LocalUpdate_publish
=== 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_sourceKMSKeyARN
=== PAUSE TestAccLambdaFunction_sourceKMSKeyARN
=== RUN   TestAccLambdaFunction_tenancyConfig
=== PAUSE TestAccLambdaFunction_tenancyConfig
=== RUN   TestAccLambdaFunction_tenancyConfigForceNew
=== PAUSE TestAccLambdaFunction_tenancyConfigForceNew
=== RUN   TestAccLambdaFunction_resetNonRefreshableAttributesAfterUpdateFailure
=== PAUSE TestAccLambdaFunction_resetNonRefreshableAttributesAfterUpdateFailure
=== RUN   TestAccLambdaFunction_skipDestroy
=== PAUSE TestAccLambdaFunction_skipDestroy
=== RUN   TestAccLambdaInvocationDataSource_basic
=== PAUSE TestAccLambdaInvocationDataSource_basic
=== RUN   TestAccLambdaInvocationDataSource_qualifier
=== PAUSE TestAccLambdaInvocationDataSource_qualifier
=== RUN   TestAccLambdaInvocationDataSource_complex
=== PAUSE TestAccLambdaInvocationDataSource_complex
=== RUN   TestAccLambdaInvocationDataSource_tenantId
=== PAUSE TestAccLambdaInvocationDataSource_tenantId
=== RUN   TestAccLambdaInvocation_basic
=== PAUSE TestAccLambdaInvocation_basic
=== RUN   TestAccLambdaInvocation_qualifier
=== PAUSE TestAccLambdaInvocation_qualifier
=== RUN   TestAccLambdaInvocation_complex
=== PAUSE TestAccLambdaInvocation_complex
=== RUN   TestAccLambdaInvocation_triggers
=== PAUSE TestAccLambdaInvocation_triggers
=== RUN   TestAccLambdaInvocation_lifecycle_scopeCRUDCreate
=== PAUSE TestAccLambdaInvocation_lifecycle_scopeCRUDCreate
=== RUN   TestAccLambdaInvocation_lifecycle_scopeCRUDUpdateInput
=== PAUSE TestAccLambdaInvocation_lifecycle_scopeCRUDUpdateInput
=== RUN   TestAccLambdaInvocation_lifecycle_scopeCreateOnlyUpdateInput
=== PAUSE TestAccLambdaInvocation_lifecycle_scopeCreateOnlyUpdateInput
=== RUN   TestAccLambdaInvocation_lifecycle_scopeCRUDDestroy
=== PAUSE TestAccLambdaInvocation_lifecycle_scopeCRUDDestroy
=== RUN   TestAccLambdaInvocation_lifecycle_scopeCreateOnlyToCRUD
=== PAUSE TestAccLambdaInvocation_lifecycle_scopeCreateOnlyToCRUD
=== RUN   TestAccLambdaInvocation_terraformKey
=== PAUSE TestAccLambdaInvocation_terraformKey
=== RUN   TestAccLambdaInvocation_UpgradeState_Pre_v5_1_0
=== PAUSE TestAccLambdaInvocation_UpgradeState_Pre_v5_1_0
=== RUN   TestAccLambdaInvocation_UpgradeState_v5_83_0
=== PAUSE TestAccLambdaInvocation_UpgradeState_v5_83_0
=== RUN   TestAccLambdaInvocation_tenantID
=== PAUSE TestAccLambdaInvocation_tenantID
=== CONT  TestAccLambdaFunctionDataSource_tags
=== CONT  TestAccLambdaFunction_enablePublish
=== CONT  TestAccLambdaFunction_LocalUpdate_publish
=== CONT  TestAccLambdaFunction_layersUpdate
=== CONT  TestAccLambdaFunction_LocalUpdate_nameOnly
--- PASS: TestAccLambdaFunctionDataSource_tags (27.57s)
=== CONT  TestAccLambdaFunction_localUpdate
--- PASS: TestAccLambdaFunction_LocalUpdate_nameOnly (63.80s)
=== CONT  TestAccLambdaFunction_s3
--- PASS: TestAccLambdaFunction_layersUpdate (73.03s)
=== CONT  TestAccLambdaFunction_emptyVPC
--- PASS: TestAccLambdaFunction_enablePublish (76.05s)
=== CONT  TestAccLambdaFunction_VPC_replaceSGWithCustom
--- PASS: TestAccLambdaFunction_s3 (32.98s)
=== CONT  TestAccLambdaFunction_VPC_replaceSGWithDefault
--- PASS: TestAccLambdaFunction_LocalUpdate_publish (150.15s)
=== CONT  TestAccLambdaFunction_VPC_properIAMDependencies
--- PASS: TestAccLambdaFunction_localUpdate (128.34s)
=== CONT  TestAccLambdaFunction_VPCPublishHas_changes
--- PASS: TestAccLambdaFunction_emptyVPC (94.65s)
=== CONT  TestAccLambdaFunction_VPCPublishNo_changes
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithCustom (515.89s)
=== CONT  TestAccLambdaFunction_VPC_withInvocation
--- PASS: TestAccLambdaFunction_VPC_properIAMDependencies (616.29s)
=== CONT  TestAccLambdaFunction_vpcUpdate
--- PASS: TestAccLambdaFunction_VPCPublishHas_changes (1144.36s)
=== CONT  TestAccLambdaFunction_vpcRemoval
--- PASS: TestAccLambdaFunction_VPCPublishNo_changes (1142.45s)
=== CONT  TestAccLambdaFunction_vpc
--- PASS: TestAccLambdaFunction_VPC_withInvocation (890.88s)
=== CONT  TestAccLambdaInvocation_lifecycle_scopeCreateOnlyUpdateInput
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithDefault (1483.52s)
=== CONT  TestAccLambdaInvocation_lifecycle_scopeCreateOnlyToCRUD
--- PASS: TestAccLambdaInvocation_lifecycle_scopeCreateOnlyUpdateInput (213.82s)
=== CONT  TestAccLambdaInvocation_terraformKey
--- PASS: TestAccLambdaInvocation_lifecycle_scopeCreateOnlyToCRUD (122.34s)
=== CONT  TestAccLambdaFunction_tenancyConfig
--- PASS: TestAccLambdaInvocation_terraformKey (35.24s)
=== CONT  TestAccLambdaInvocationDataSource_complex
--- PASS: TestAccLambdaFunction_tenancyConfig (41.39s)
=== CONT  TestAccLambdaInvocationDataSource_qualifier
--- PASS: TestAccLambdaInvocationDataSource_complex (27.04s)
=== CONT  TestAccLambdaInvocationDataSource_basic
--- PASS: TestAccLambdaFunction_vpcUpdate (995.26s)
=== CONT  TestAccLambdaFunction_skipDestroy
--- PASS: TestAccLambdaInvocationDataSource_qualifier (30.00s)
=== CONT  TestAccLambdaFunction_resetNonRefreshableAttributesAfterUpdateFailure
--- PASS: TestAccLambdaInvocationDataSource_basic (30.01s)
=== CONT  TestAccLambdaFunction_tenancyConfigForceNew
--- PASS: TestAccLambdaFunction_skipDestroy (37.87s)
=== CONT  TestAccLambdaInvocation_lifecycle_scopeCRUDDestroy
--- PASS: TestAccLambdaInvocation_lifecycle_scopeCRUDDestroy (40.55s)
=== CONT  TestAccLambdaFunction_tracing
--- PASS: TestAccLambdaFunction_tenancyConfigForceNew (55.08s)
=== CONT  TestAccLambdaFunction_layers
--- PASS: TestAccLambdaFunction_vpcRemoval (547.58s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add
--- PASS: TestAccLambdaFunction_resetNonRefreshableAttributesAfterUpdateFailure (74.62s)
=== CONT  TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
--- PASS: TestAccLambdaFunction_layers (48.54s)
--- PASS: TestAccLambdaFunction_vpc (582.52s)
=== CONT  TestAccLambdaInvocation_UpgradeState_Pre_v5_1_0
--- PASS: TestAccLambdaFunction_tracing (58.05s)
=== CONT  TestAccLambdaFunction_runtimes
--- PASS: TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables (52.92s)
=== CONT  TestAccLambdaInvocation_tenantID
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Add (61.15s)
=== CONT  TestAccLambdaFunction_sourceKMSKeyARN
--- PASS: TestAccLambdaInvocation_tenantID (40.40s)
=== CONT  TestAccLambdaInvocation_UpgradeState_v5_83_0
--- PASS: TestAccLambdaInvocation_UpgradeState_Pre_v5_1_0 (57.62s)
=== CONT  TestAccLambdaFunction_ipv6AllowedForDualStack
--- PASS: TestAccLambdaFunction_sourceKMSKeyARN (60.93s)
=== CONT  TestAccLambdaFunction_Zip_validation
--- PASS: TestAccLambdaFunction_Zip_validation (3.20s)
=== CONT  TestAccLambdaFunction_nilDeadLetter
--- PASS: TestAccLambdaInvocation_UpgradeState_v5_83_0 (57.87s)
=== CONT  TestAccLambdaFunction_architecturesUpdate
--- PASS: TestAccLambdaFunction_nilDeadLetter (31.33s)
=== CONT  TestAccLambdaFunction_architectures
--- PASS: TestAccLambdaFunction_architectures (200.44s)
=== CONT  TestAccLambdaFunction_fileSystem
--- PASS: TestAccLambdaFunction_architecturesUpdate (206.02s)
=== CONT  TestAccLambdaFunction_S3Update_unversioned
--- PASS: TestAccLambdaFunction_S3Update_unversioned (51.85s)
=== CONT  TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag
--- PASS: TestAccLambdaFunction_tags_IgnoreTags_Overlap_DefaultTag (47.71s)
=== CONT  TestAccLambdaFunction_snapStart
--- PASS: TestAccLambdaFunction_runtimes (499.97s)
=== CONT  TestAccLambdaFunction_versioned
--- PASS: TestAccLambdaFunction_versioned (126.97s)
=== CONT  TestAccLambdaFunction_S3Update_basic
--- PASS: TestAccLambdaFunction_snapStart (230.08s)
=== CONT  TestAccLambdaFunction_nameValidation
--- PASS: TestAccLambdaFunction_nameValidation (0.87s)
=== CONT  TestAccLambdaFunction_concurrency
--- PASS: TestAccLambdaFunction_S3Update_basic (54.04s)
=== CONT  TestAccLambdaFunction_codeSigning
--- PASS: TestAccLambdaFunction_concurrency (67.66s)
=== CONT  TestAccLambdaFunction_encryptedEnvVariables
--- PASS: TestAccLambdaFunction_codeSigning (52.51s)
=== CONT  TestAccLambdaFunction_unpublishedCodeUpdate
--- PASS: TestAccLambdaFunction_encryptedEnvVariables (76.79s)
=== CONT  TestAccLambdaFunction_EnvironmentVariables_noValue
--- PASS: TestAccLambdaFunction_fileSystem (476.12s)
=== CONT  TestAccLambdaFunction_disappears
--- PASS: TestAccLambdaFunction_EnvironmentVariables_noValue (42.61s)
=== CONT  TestAccLambdaFunction_versionedUpdate
--- PASS: TestAccLambdaFunction_unpublishedCodeUpdate (72.12s)
=== CONT  TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccLambdaFunction_ipv6AllowedForDualStack (756.59s)
=== CONT  TestAccLambdaFunction_envVariables
--- PASS: TestAccLambdaFunction_disappears (40.79s)
=== CONT  TestAccLambdaFunction_loggingConfig
--- PASS: TestAccLambdaFunction_tags_IgnoreTags_Overlap_ResourceTag (54.94s)
=== CONT  TestAccLambdaFunction_basic
--- PASS: TestAccLambdaFunction_versionedUpdate (87.55s)
=== CONT  TestAccLambdaFunction_loggingConfigWithPublish
--- PASS: TestAccLambdaFunction_envVariables (91.35s)
=== CONT  TestAccLambdaFunction_expectFilenameAndS3Attributes
--- PASS: TestAccLambdaFunction_basic (40.03s)
=== CONT  TestAccLambdaFunction_deadLetter
--- PASS: TestAccLambdaFunction_expectFilenameAndS3Attributes (0.86s)
=== CONT  TestAccLambdaFunction_concurrencyCycle
--- PASS: TestAccLambdaFunction_loggingConfig (83.97s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nonOverlapping
--- PASS: TestAccLambdaFunction_deadLetter (57.37s)
=== CONT  TestAccLambdaFunction_deadLetterUpdated
--- PASS: TestAccLambdaFunction_concurrencyCycle (61.82s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_providerOnly
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nonOverlapping (95.39s)
=== CONT  TestAccLambdaInvocation_lifecycle_scopeCRUDUpdateInput
--- PASS: TestAccLambdaFunction_deadLetterUpdated (56.49s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_overlapping
--- PASS: TestAccLambdaFunction_tags_DefaultTags_providerOnly (73.64s)
=== CONT  TestAccLambdaInvocation_lifecycle_scopeCRUDCreate
--- PASS: TestAccLambdaInvocation_lifecycle_scopeCRUDUpdateInput (39.43s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace
--- PASS: TestAccLambdaFunction_loggingConfigWithPublish (155.50s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly
--- PASS: TestAccLambdaInvocation_lifecycle_scopeCRUDCreate (28.87s)
=== CONT  TestAccLambdaFunction_ephemeralStorage
--- PASS: TestAccLambdaFunction_tags_DefaultTags_overlapping (60.57s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnCreate
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnUpdate_Replace (39.84s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly
--- PASS: TestAccLambdaFunction_tags_DefaultTags_updateToResourceOnly (43.40s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnCreate (35.85s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag
--- PASS: TestAccLambdaFunction_ephemeralStorage (56.18s)
=== CONT  TestAccLambdaInvocation_qualifier
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nullOverlappingResourceTag (33.33s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag
--- PASS: TestAccLambdaFunction_tags_DefaultTags_updateToProviderOnly (43.87s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccLambdaFunction_tags_DefaultTags_nullNonOverlappingResourceTag (38.08s)
=== CONT  TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag
--- PASS: TestAccLambdaInvocation_qualifier (33.21s)
=== CONT  TestAccLambdaFunctionDataSource_fileSystem
--- PASS: TestAccLambdaFunction_tags_DefaultTags_emptyProviderOnlyTag (39.57s)
=== CONT  TestAccLambdaFunctionDataSource_versionWithReservedConcurrency
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Replace (55.61s)
=== CONT  TestAccLambdaFunction_tags_EmptyTag_OnCreate
--- PASS: TestAccLambdaFunction_tags_DefaultTags_emptyResourceTag (33.71s)
=== CONT  TestAccLambdaFunctionDataSource_environment
--- PASS: TestAccLambdaFunctionDataSource_versionWithReservedConcurrency (25.83s)
=== CONT  TestAccLambdaFunction_tags_AddOnUpdate
=== CONT  TestAccLambdaFunctionDataSource_vpc
--- PASS: TestAccLambdaFunctionDataSource_environment (40.66s)
=== CONT  TestAccLambdaFunction_tags_EmptyMap
--- PASS: TestAccLambdaFunction_tags_EmptyTag_OnCreate (50.58s)
=== CONT  TestAccLambdaInvocation_basic
--- PASS: TestAccLambdaFunction_tags_AddOnUpdate (55.20s)
=== CONT  TestAccLambdaFunctionDataSource_alias
--- PASS: TestAccLambdaInvocation_basic (73.71s)
=== CONT  TestAccLambdaFunctionDataSource_unpublishedVersion
--- PASS: TestAccLambdaFunction_tags_EmptyMap (84.74s)
=== CONT  TestAccLambdaFunctionDataSource_latestVersion
--- PASS: TestAccLambdaFunctionDataSource_alias (190.79s)
=== CONT  TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_DefaultTag
--- PASS: TestAccLambdaFunctionDataSource_unpublishedVersion (132.81s)
=== CONT  TestAccLambdaFunction_Identity_Basic
--- PASS: TestAccLambdaFunctionDataSource_latestVersion (137.32s)
=== CONT  TestAccLambdaFunctionDataSource_version
--- PASS: TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_DefaultTag (27.11s)
=== CONT  TestAccLambdaFunction_tags_null
--- PASS: TestAccLambdaFunctionDataSource_version (26.86s)
=== CONT  TestAccLambdaFunctionDataSource_basic
--- PASS: TestAccLambdaFunction_Identity_Basic (38.30s)
=== CONT  TestAccLambdaFunction_tags
--- PASS: TestAccLambdaFunctionDataSource_basic (29.50s)
=== CONT  TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccLambdaFunction_tags_null (45.09s)
=== CONT  TestAccLambdaFunction_Identity_ExistingResource_NoRefresh_NoChange
--- PASS: TestAccLambdaFunctionDataSource_tags_IgnoreTags_Overlap_ResourceTag (27.04s)
=== CONT  TestAccLambdaInvocation_triggers
--- PASS: TestAccLambdaFunction_tags (74.19s)
=== CONT  TestAccLambdaFunction_disablePublish
--- PASS: TestAccLambdaFunction_Identity_ExistingResource_NoRefresh_NoChange (67.99s)
=== CONT  TestAccLambdaFunctionDataSource_tags_EmptyMap
--- PASS: TestAccLambdaInvocation_triggers (48.16s)
=== CONT  TestAccLambdaFunctionDataSource_architectures
--- PASS: TestAccLambdaFunctionDataSource_vpc (383.37s)
=== CONT  TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccLambdaFunctionDataSource_tags_EmptyMap (26.95s)
=== CONT  TestAccLambdaFunctionDataSource_tenancyConfig
--- PASS: TestAccLambdaFunctionDataSource_fileSystem (624.05s)
=== CONT  TestAccLambdaFunction_Identity_RegionOverride
--- PASS: TestAccLambdaFunction_disablePublish (247.40s)
=== CONT  TestAccLambdaFunctionDataSource_image
    function_data_source_test.go:426: AWS_LAMBDA_IMAGE_LATEST_ID env var must be set for Lambda Function Data Source Image Support acceptance tests.
--- SKIP: TestAccLambdaFunctionDataSource_image (0.00s)
=== CONT  TestAccLambdaFunctionDataSource_tags_DefaultTags_nonOverlapping
--- PASS: TestAccLambdaFunctionDataSource_architectures (228.58s)
=== CONT  TestAccLambdaFunctionDataSource_loggingConfig
--- PASS: TestAccLambdaFunctionDataSource_tenancyConfig (240.53s)
=== CONT  TestAccLambdaFunctionDataSource_tags_NullMap
--- PASS: TestAccLambdaFunction_tags_ComputedTag_OnUpdate_Add (259.20s)
=== CONT  TestAccLambdaFunction_Identity_ExistingResource
--- PASS: TestAccLambdaFunctionDataSource_tags_DefaultTags_nonOverlapping (54.60s)
=== CONT  TestAccLambdaFunctionDataSource_ephemeralStorage
--- PASS: TestAccLambdaFunction_Identity_RegionOverride (75.88s)
=== CONT  TestAccLambdaInvocationDataSource_tenantId
--- PASS: TestAccLambdaFunctionDataSource_tags_NullMap (28.56s)
=== CONT  TestAccLambdaFunctionDataSource_layers
--- PASS: TestAccLambdaFunctionDataSource_loggingConfig (71.60s)
=== CONT  TestAccLambdaInvocation_complex
--- PASS: TestAccLambdaFunctionDataSource_ephemeralStorage (30.42s)
=== CONT  TestAccLambdaFunction_architecturesWithLayer
--- PASS: TestAccLambdaInvocationDataSource_tenantId (34.59s)
--- PASS: TestAccLambdaFunctionDataSource_layers (26.31s)
--- PASS: TestAccLambdaInvocation_complex (26.65s)
--- PASS: TestAccLambdaFunction_Identity_ExistingResource (74.37s)
--- PASS: TestAccLambdaFunction_architecturesWithLayer (58.35s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/lambda	3845.736s

@ewbankkit
Copy link
Contributor

@sasidhar-aws Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 203c377 into hashicorp:main Nov 22, 2025
48 checks passed
@github-actions
Copy link
Contributor

Warning

This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v6.23.0 milestone Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. partner Contribution from a partner. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/lambda Issues and PRs that pertain to the lambda service. size/XL 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

Development

Successfully merging this pull request may close these issues.

Lambda tenant isolation mode

2 participants