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

Minor: Implementation of the aws_lambda_event_source_mapping resource to easily set a stream or a queue as trigger for lambda. #75

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

nnsense
Copy link
Contributor

@nnsense nnsense commented Aug 26, 2024

what

Implementation of the aws_lambda_event_source_mapping resource, allowing to set a Kinesis stream, DynamoDB stream, or SQS queue as a trigger for lambda. I've purposely kept things simple allowing only a few variables:

  • source_mapping_arn pointing to the arn of the triggering resource (eg, the lambda execution role)
  • source_mapping_batch_size allowing to tune the number of events we pass to the function.
  • source_mapping_starting_position, because it's usually required and terraform complains if it's unset
  • source_mapping_starting_position_timestamp, if someone wants to use AT_TIMESTAMP in Kinesis.

why

It's useful to get lambda triggered by other resources without having to set just one resource in another module.

@nnsense nnsense requested review from a team as code owners August 26, 2024 19:34
@mergify mergify bot added the triage Needs triage label Aug 26, 2024
@milldr
Copy link
Member

milldr commented Aug 27, 2024

/terratest

main.tf Show resolved Hide resolved
@milldr
Copy link
Member

milldr commented Aug 27, 2024

/terratest

@milldr
Copy link
Member

milldr commented Aug 28, 2024

/terratest

@nnsense
Copy link
Contributor Author

nnsense commented Aug 28, 2024

Hi @milldr I think I've fixed the terraform/tofu testing passing a few fake parameters, let me know if that's OK and we're ready for another go :)

@milldr
Copy link
Member

milldr commented Aug 28, 2024

/terratest

@nnsense
Copy link
Contributor Author

nnsense commented Aug 28, 2024

Cloudposse Dynamo DB table module added to examples

@milldr
Copy link
Member

milldr commented Aug 28, 2024

/terratest

@milldr
Copy link
Member

milldr commented Sep 4, 2024

/terratest

Copy link

mergify bot commented Sep 19, 2024

💥 This pull request now has conflicts. Could you fix it @nnsense? 🙏

@mergify mergify bot added the conflict This PR has conflicts label Sep 19, 2024
@mergify mergify bot removed the conflict This PR has conflicts label Sep 25, 2024
@nnsense
Copy link
Contributor Author

nnsense commented Sep 25, 2024

Hey @milldr, if you have time, could you review again? I hope I've fixed everything, sorry for the delay.. busy days! Thanks :)

@milldr
Copy link
Member

milldr commented Sep 25, 2024

/terratest

@nnsense
Copy link
Contributor Author

nnsense commented Sep 25, 2024

Fixed (hopefully), overlloked those dots 🤦🏻‍♂️

@milldr
Copy link
Member

milldr commented Oct 7, 2024

/terratest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants