-
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_event_source_mapping: Fix creation wait for proper state update #14765
r/aws_lambda_event_source_mapping: Fix creation wait for proper state update #14765
Conversation
Output from acceptance testing in AWS Commercial: ``` --- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (55.29s) --- FAIL: TestAccAWSLambdaEventSourceMapping_sqs_basic (64.70s) # #14765 --- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (77.70s) --- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (83.78s) --- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (106.53s) --- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (107.34s) --- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (107.85s) --- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (108.87s) --- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (109.37s) --- PASS: TestAccAWSLambdaEventSourceMapping_disappears (112.05s) --- PASS: TestAccAWSLambdaEventSourceMapping_KinesisBatchWindow (115.26s) --- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (116.99s) --- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (117.33s) --- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (118.04s) --- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (120.57s) --- PASS: TestAccAWSLambdaEventSourceMapping_MSK (1684.38s) ```
This looks really good, thank you, @shuheiktgw 👍 Rebasing this to remove merge conflicts and adjusting waiters to match the very fresh Retries and Waiters documentation. |
d.Set("enabled", false) | ||
default: | ||
log.Printf("[DEBUG] Lambda event source mapping is neither enabled nor disabled but %s", *eventSourceMappingConfiguration.State) | ||
return fmt.Errorf("state is neither enabled nor disabled but %s", *eventSourceMappingConfiguration.State) |
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.
Just to prevent unexpected issues for now, likely going to keep this as a warning log.
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.
Thank you again, @shuheiktgw 🚀
Output from acceptance testing in AWS Commercial:
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (84.88s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisBatchWindow (91.98s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (93.96s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (99.00s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (119.52s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (122.45s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (123.92s)
--- PASS: TestAccAWSLambdaEventSourceMapping_disappears (140.88s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (148.30s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (150.96s)
--- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (151.81s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (154.00s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (179.49s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (194.97s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (203.61s)
Output from acceptance testing in AWS GovCloud (US):
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (51.56s)
--- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (79.77s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (87.12s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (87.57s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisBatchWindow (108.33s)
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (113.78s)
--- PASS: TestAccAWSLambdaEventSourceMapping_disappears (118.66s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (126.46s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (138.00s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (148.92s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (161.04s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (161.87s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (166.13s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (193.48s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (226.55s)
This has been released in version 3.28.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #14748
Release note for CHANGELOG:
Output from acceptance testing:
Thank you for your review! 👍