-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_lambda_function: Add skip_destroy
argument and retry deletion of replicated Lambda@Edge functions
#29646
Conversation
…n of replicated Lambda@Edge functions.
Acceptance test output: % make testacc TESTARGS='-run=TestAccLambdaFunction_basic\|TestAccLambdaFunction_skipDestroy\|TestAccLambdaFunction_disappears' PKG=lambda ACCTEST_PARALLELISM=3 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/lambda/... -v -count 1 -parallel 3 -run=TestAccLambdaFunction_basic\|TestAccLambdaFunction_skipDestroy\|TestAccLambdaFunction_disappears -timeout 180m === RUN TestAccLambdaFunction_basic === PAUSE TestAccLambdaFunction_basic === RUN TestAccLambdaFunction_disappears === PAUSE TestAccLambdaFunction_disappears === RUN TestAccLambdaFunction_skipDestroy === PAUSE TestAccLambdaFunction_skipDestroy === CONT TestAccLambdaFunction_basic === CONT TestAccLambdaFunction_skipDestroy === CONT TestAccLambdaFunction_disappears --- PASS: TestAccLambdaFunction_disappears (37.24s) --- PASS: TestAccLambdaFunction_basic (45.85s) --- PASS: TestAccLambdaFunction_skipDestroy (48.66s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/lambda 54.571s
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
$ make testacc PKG=lambda TESTS=TestAccLambdaFunction_
--- PASS: TestAccLambdaFunction_Zip_validation (7.99s)
=== CONT TestAccLambdaFunction_VPCPublishNo_changes
--- PASS: TestAccLambdaFunction_s3 (38.67s)
=== CONT TestAccLambdaFunction_VPC_withInvocation
--- PASS: TestAccLambdaFunction_skipDestroy (45.94s)
=== CONT TestAccLambdaFunction_vpcUpdate
--- PASS: TestAccLambdaFunction_S3Update_unversioned (58.58s)
=== CONT TestAccLambdaFunction_vpcRemoval
--- PASS: TestAccLambdaFunction_S3Update_basic (60.29s)
=== CONT TestAccLambdaFunction_vpc
--- PASS: TestAccLambdaFunction_versioned (60.95s)
=== CONT TestAccLambdaFunction_layersUpdate
--- PASS: TestAccLambdaFunction_emptyVPC (67.06s)
=== CONT TestAccLambdaFunction_layers
--- PASS: TestAccLambdaFunction_tracing (73.01s)
=== CONT TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables
--- PASS: TestAccLambdaFunction_basic (73.12s)
=== CONT TestAccLambdaFunction_architectures
--- PASS: TestAccLambdaFunction_nilDeadLetter (76.22s)
=== CONT TestAccLambdaFunction_architecturesUpdate
--- PASS: TestAccLambdaFunction_snapStart (103.18s)
=== CONT TestAccLambdaFunction_fileSystem
--- PASS: TestAccLambdaFunction_ephemeralStorage (108.91s)
=== CONT TestAccLambdaFunction_concurrencyCycle
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithDefault (311.86s)
=== CONT TestAccLambdaFunction_nameValidation
--- PASS: TestAccLambdaFunction_nameValidation (0.79s)
=== CONT TestAccLambdaFunction_encryptedEnvVariables
--- PASS: TestAccLambdaFunction_runtimes (348.13s)
=== CONT TestAccLambdaFunction_EnvironmentVariables_noValue
--- PASS: TestAccLambdaFunction_VPC_properIAMDependencies (514.65s)
=== CONT TestAccLambdaFunction_disablePublish
--- PASS: TestAccLambdaFunction_VPC_replaceSGWithCustom (697.70s)
=== CONT TestAccLambdaFunction_envVariables
--- PASS: TestAccLambdaFunction_VPCPublishHas_changes (909.89s)
=== CONT TestAccLambdaFunction_deadLetterUpdated
--- PASS: TestAccLambdaFunction_localUpdate (1063.56s)
=== CONT TestAccLambdaFunction_deadLetter
--- PASS: TestAccLambdaFunction_LocalUpdate_nameOnly (1069.45s)
=== CONT TestAccLambdaFunction_expectFilenameAndS3Attributes
--- PASS: TestAccLambdaFunction_expectFilenameAndS3Attributes (0.83s)
=== CONT TestAccLambdaFunction_unpublishedCodeUpdate
--- PASS: TestAccLambdaFunction_VPCPublishNo_changes (1415.79s)
=== CONT TestAccLambdaFunction_concurrency
--- PASS: TestAccLambdaFunction_VPC_withInvocation (1559.14s)
=== CONT TestAccLambdaFunction_codeSigning
--- PASS: TestAccLambdaFunction_vpcRemoval (1612.40s)
=== CONT TestAccLambdaFunction_tags
--- PASS: TestAccLambdaFunction_architectures (1796.60s)
=== CONT TestAccLambdaFunction_disappears
--- PASS: TestAccLambdaFunction_KMSKeyARN_noEnvironmentVariables (1798.17s)
=== CONT TestAccLambdaFunction_versionedUpdate
--- PASS: TestAccLambdaFunction_layersUpdate (1811.93s)
=== CONT TestAccLambdaFunction_enablePublish
--- PASS: TestAccLambdaFunction_layers (1814.34s)
--- PASS: TestAccLambdaFunction_concurrencyCycle (1803.94s)
--- PASS: TestAccLambdaFunction_vpcUpdate (1978.74s)
--- PASS: TestAccLambdaFunction_vpc (1968.02s)
--- PASS: TestAccLambdaFunction_EnvironmentVariables_noValue (1744.20s)
--- PASS: TestAccLambdaFunction_architecturesWithLayer (2106.07s)
--- PASS: TestAccLambdaFunction_disablePublish (1596.66s)
--- PASS: TestAccLambdaFunction_encryptedEnvVariables (1811.04s)
--- PASS: TestAccLambdaFunction_deadLetterUpdated (1228.31s)
--- PASS: TestAccLambdaFunction_deadLetter (1081.30s)
--- PASS: TestAccLambdaFunction_concurrency (728.26s)
--- PASS: TestAccLambdaFunction_architecturesUpdate (2078.81s)
--- PASS: TestAccLambdaFunction_disappears (291.54s)
--- PASS: TestAccLambdaFunction_codeSigning (568.70s)
--- PASS: TestAccLambdaFunction_envVariables (1471.22s)
--- PASS: TestAccLambdaFunction_tags (506.03s)
--- PASS: TestAccLambdaFunction_unpublishedCodeUpdate (1110.81s)
--- PASS: TestAccLambdaFunction_enablePublish (327.08s)
--- PASS: TestAccLambdaFunction_versionedUpdate (335.24s)
--- PASS: TestAccLambdaFunction_fileSystem (2331.73s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lambda 2438.112s
This functionality has been released in v4.57.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Adds the
skip_destroy
argument and retry (up to a configurable timeout) deletion of replicated Lambda@Edge functions.Relations
Closes #1721.
Relates #29633.
Output from Acceptance Testing