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/lambda_event_source_mapping - allow zero value for maximum_retry_attempts #12479

Merged
merged 1 commit into from
Jul 31, 2020

Conversation

DrFaust92
Copy link
Collaborator

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 #12448

Release note for CHANGELOG:

resource_aws_lambda_event_source_mapping - allow zero value for `maximum_retry_attempts`

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero'
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (148.92s)

@DrFaust92 DrFaust92 requested a review from a team March 19, 2020 10:12
@ghost ghost added size/S Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/lambda Issues and PRs that pertain to the lambda service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 19, 2020
@ewbankkit
Copy link
Contributor

Validated acceptance test:

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

@ZachTB123
Copy link

Any updates on this?

@DrFaust92 DrFaust92 added the bug Addresses a defect in current functionality. label May 22, 2020
@chipzzz
Copy link

chipzzz commented Jun 9, 2020

Also experiencing this in
v0.12.7 terraform
version = "2.51.0" AWS provider

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Jun 9, 2020
@ewbankkit ewbankkit requested review from ewbankkit and removed request for a team July 25, 2020 20:42
@ewbankkit
Copy link
Contributor

LGTM.
Verified new acceptance test:

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

@anGie44 anGie44 added this to the v3.1.0 milestone Jul 31, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Output of acceptance tests:

--- PASS: TestAccAWSLambdaEventSourceMapping_BatchWindow (71.21s)
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (68.57s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (61.56s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (71.71s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (59.31s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (67.26s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (70.05s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (78.60s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (157.49s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (75.16s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_disappears (53.37s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (62.49s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqsDisappears (153.76s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (144.63s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (46.83s)

@anGie44 anGie44 merged commit 6931149 into hashicorp:master Jul 31, 2020
anGie44 added a commit that referenced this pull request Jul 31, 2020
@ghost
Copy link

ghost commented Aug 7, 2020

This has been released in version 3.1.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!

@DrFaust92 DrFaust92 deleted the r/lambda-mapping-zero-value branch August 27, 2020 17:59
@ghost
Copy link

ghost commented Aug 31, 2020

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 and limited conversation to collaborators Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/lambda Issues and PRs that pertain to the lambda service. size/S 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_event_source_mapping - maximum_retry_attempts are set to 10000 when trying to set 0
5 participants