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

feat: Added support for event source mapping in alias submodule #320

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Conversation

matt-empson
Copy link
Contributor

@matt-empson matt-empson commented Jun 16, 2022

Description

This change adds the ability to configure event source mapping on a Lambda Alias, instead of just the base Lambda. The code to configure the event source mapping was pulled from the main Lambda module and ported to the alias module.

Motivation and Context

We extensively target a Lambda alias for all our use cases in our environment, currently setting this purely via the module isn't possible.

Breaking Changes

No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects

Ran terraform apply to examples/alias and then made my changes to the module and ran another apply. No changes were detected. Added new examples and ran another apply. Resources deployed successfully.

  • I have executed pre-commit run -a on my pull request

Copy link
Member

@antonbabenko antonbabenko left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Some simplification is required before merging.

modules/alias/main.tf Outdated Show resolved Hide resolved
modules/alias/main.tf Outdated Show resolved Hide resolved
modules/alias/main.tf Outdated Show resolved Hide resolved
modules/alias/main.tf Outdated Show resolved Hide resolved
modules/alias/main.tf Outdated Show resolved Hide resolved
modules/alias/outputs.tf Outdated Show resolved Hide resolved
examples/alias/main.tf Outdated Show resolved Hide resolved
examples/alias/main.tf Outdated Show resolved Hide resolved
examples/alias/main.tf Outdated Show resolved Hide resolved
@matt-empson
Copy link
Contributor Author

Looks pretty good. Some simplification is required before merging.

Thanks for those suggestions, they have made it cleaner.

@antonbabenko antonbabenko changed the title feat: Support event source mapping on alias feat: Added support for event source mapping in alias submodule Jun 16, 2022
@antonbabenko antonbabenko merged commit af22d00 into terraform-aws-modules:master Jun 16, 2022
@antonbabenko
Copy link
Member

Thank you for this addition!

antonbabenko pushed a commit that referenced this pull request Jun 16, 2022
## [3.3.0](v3.2.1...v3.3.0) (2022-06-16)

### Features

* Added support for event source mapping in alias submodule ([#320](#320)) ([af22d00](af22d00))
@antonbabenko
Copy link
Member

This PR is included in version 3.3.0 🎉

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants