Skip to content
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: Add MSK as an event source #14746

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Aug 19, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #14658.

Output from acceptance testing:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLambdaEventSourceMapping_kinesis_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLambdaEventSourceMapping_kinesis_basic -timeout 120m
=== RUN   TestAccAWSLambdaEventSourceMapping_kinesis_basic
=== PAUSE TestAccAWSLambdaEventSourceMapping_kinesis_basic
=== CONT  TestAccAWSLambdaEventSourceMapping_kinesis_basic
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (74.45s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	74.492s
$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLambdaEventSourceMapping_MSK'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLambdaEventSourceMapping_MSK -timeout 120m
=== RUN   TestAccAWSLambdaEventSourceMapping_MSK
=== PAUSE TestAccAWSLambdaEventSourceMapping_MSK
=== CONT  TestAccAWSLambdaEventSourceMapping_MSK
--- PASS: TestAccAWSLambdaEventSourceMapping_MSK (1678.87s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1678.910s

@ewbankkit ewbankkit requested a review from a team August 19, 2020 20:14
@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/lambda Issues and PRs that pertain to the lambda service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Aug 19, 2020
Copy link
Collaborator

@DrFaust92 DrFaust92 left a comment

Choose a reason for hiding this comment

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

Minor nits

Copy link
Collaborator

@DrFaust92 DrFaust92 left a comment

Choose a reason for hiding this comment

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

LGTM

--- PASS: TestAccAWSLambdaEventSourceMapping_MSK (1498.70s)

@migueldomingosaccenture

Last comment 21 days ago. Can you review and approve this as we need this functionality too? Thanks

@stlimtat
Copy link

I need this function.

@yinchuandong
Copy link

yinchuandong commented Dec 4, 2020

I need this function

1 similar comment
@feifanz
Copy link

feifanz commented Dec 4, 2020

I need this function

@yinchuandong
Copy link

@ewbankkit Hi mate, can you pls solve the conflicts? I am waiting for this feature for a long time. Can you pls push to merge it? Thanks!

@ewbankkit ewbankkit force-pushed the f-aws_lambda_event_source_mapping-add-topic-name branch from 75ab6b3 to 72ccc62 Compare December 5, 2020 21:50
@ewbankkit ewbankkit requested a review from a team as a code owner December 5, 2020 21:50
@ewbankkit
Copy link
Contributor Author

Rebased and resolved merge conflicts.

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSLambdaEventSourceMapping_MSK'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLambdaEventSourceMapping_MSK -timeout 120m
=== RUN   TestAccAWSLambdaEventSourceMapping_MSK
=== PAUSE TestAccAWSLambdaEventSourceMapping_MSK
=== CONT  TestAccAWSLambdaEventSourceMapping_MSK
--- PASS: TestAccAWSLambdaEventSourceMapping_MSK (2235.39s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2235.483s

@ewbankkit ewbankkit force-pushed the f-aws_lambda_event_source_mapping-add-topic-name branch from 72ccc62 to 3ed477c Compare December 16, 2020 14:42
Base automatically changed from master to main January 23, 2021 00:58
@AlexanderSchiff
Copy link
Contributor

When will this be merged and released? Definitely need this

@ewbankkit ewbankkit force-pushed the f-aws_lambda_event_source_mapping-add-topic-name branch from 3ed477c to 1c24135 Compare February 10, 2021 17:56
@bflad bflad self-assigned this Feb 11, 2021
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Feb 11, 2021
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @ewbankkit 🚀

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (55.29s)
--- FAIL: TestAccAWSLambdaEventSourceMapping_sqs_basic (64.70s) # https://github.com/hashicorp/terraform-provider-aws/pull/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)

@bflad bflad merged commit 21520f5 into hashicorp:main Feb 11, 2021
@github-actions github-actions bot added this to the v3.28.0 milestone Feb 11, 2021
@ewbankkit ewbankkit deleted the f-aws_lambda_event_source_mapping-add-topic-name branch February 11, 2021 15:56
@ghost
Copy link

ghost commented Feb 12, 2021

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!

@ghost
Copy link

ghost commented Mar 13, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. 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
Development

Successfully merging this pull request may close these issues.

AWS Lambda support for Amazon Managed Streaming for Apache Kafka as an event source
8 participants