-
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
feat: add provisioned_poller_config for kafka in lambda event source … #40303
feat: add provisioned_poller_config for kafka in lambda event source … #40303
Conversation
Community NoteVoting for Prioritization
For Submitters
|
# Conflicts: # internal/service/lambda/event_source_mapping.go # internal/service/lambda/event_source_mapping_test.go # website/docs/r/lambda_event_source_mapping.html.markdown
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 TESTARGS='-run=TestAccLambdaEventSourceMapping_Kinesis_basic\|TestAccLambdaEventSourceMapping_msk\|TestAccLambdaEventSourceMapping_selfManagedKafka' PKG=lambda ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/lambda/... -v -count 1 -parallel 4 -run=TestAccLambdaEventSourceMapping_Kinesis_basic\|TestAccLambdaEventSourceMapping_msk\|TestAccLambdaEventSourceMapping_selfManagedKafka -timeout 360m
2024/11/27 11:51:22 Initializing Terraform AWS Provider...
=== RUN TestAccLambdaEventSourceMapping_Kinesis_basic
=== PAUSE TestAccLambdaEventSourceMapping_Kinesis_basic
=== RUN TestAccLambdaEventSourceMapping_msk
=== PAUSE TestAccLambdaEventSourceMapping_msk
=== RUN TestAccLambdaEventSourceMapping_mskWithEventSourceConfig
=== PAUSE TestAccLambdaEventSourceMapping_mskWithEventSourceConfig
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafka
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafka
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
=== CONT TestAccLambdaEventSourceMapping_Kinesis_basic
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafka
=== CONT TestAccLambdaEventSourceMapping_mskWithEventSourceConfig
=== CONT TestAccLambdaEventSourceMapping_msk
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafka (45.29s)
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
--- PASS: TestAccLambdaEventSourceMapping_Kinesis_basic (66.76s)
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig (33.60s)
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig (56.29s)
--- PASS: TestAccLambdaEventSourceMapping_msk (3071.22s)
--- PASS: TestAccLambdaEventSourceMapping_mskWithEventSourceConfig (3073.23s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lambda 3078.719s
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.
A few non-blocking comments on the tests and documentation, otherwise looks good!
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafka (39.43s)
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig (46.39s)
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig (61.20s)
Co-authored-by: Graham Davison <[email protected]>
Co-authored-by: Graham Davison <[email protected]>
…: 0 or 2; Actual: 1]'.
…dPollerConfig' after review.
After addressing review comments: % make testacc TESTARGS='-run=TestAccLambdaEventSourceMapping_selfManagedKafka' PKG=lambda
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/lambda/... -v -count 1 -parallel 20 -run=TestAccLambdaEventSourceMapping_selfManagedKafka -timeout 360m
2024/11/27 15:07:40 Initializing Terraform AWS Provider...
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafka
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafka
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
=== RUN TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
=== PAUSE TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafka
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig
=== CONT TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafka (45.92s)
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithEventSourceConfig (46.80s)
--- PASS: TestAccLambdaEventSourceMapping_selfManagedKafkaWithProvisionedPollerConfig (58.46s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/lambda 63.893s |
@lvthillo Thanks for the contribution 🎉 👏. |
Description
AWS Lambda announces Provisioned Mode for event source mappings (ESMs) that subscribe to Apache Kafka event sources, a feature that allows you to optimize the throughput of your Kafka ESM by provisioning event polling resources that remain ready to handle sudden spikes in traffic.
Relations
Closes #40293
References
Output from Acceptance Testing