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(lambda-event-sources): disable source mapping #10927

Merged
merged 5 commits into from
Oct 23, 2020

Conversation

wtho
Copy link
Contributor

@wtho wtho commented Oct 17, 2020

Specifically, it enables this flag in the props of which resources use
an underlying Cfn EventSourceMapping, which carries the Enabled flag
itself.
These are currently: SQS, DynamoDb Streams and Kinesis.

MSK is also listed in the Cfn Docs, but I could not find MSK in lambda-event-sources.

Closes #5750

  • Added Unit Tests
  • Documented addition in README.md

This change is not breaking.

I did not add integration tests so far, but could write some if required.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Oct 17, 2020

@wtho wtho force-pushed the wtho/event-sources-enabled-field branch from 58d2b43 to 2c24026 Compare October 17, 2020 13:50
@nija-at nija-at changed the title feat(lambda-event-sources): expose enabled feat(lambda-event-sources): disable event source mapping Oct 21, 2020
@nija-at nija-at changed the title feat(lambda-event-sources): disable event source mapping feat(lambda-event-sources): disable source mapping Oct 21, 2020
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Looks good.

Just one comment below.

@wtho wtho force-pushed the wtho/event-sources-enabled-field branch from 2c24026 to 3292d00 Compare October 21, 2020 17:08
@mergify mergify bot dismissed nija-at’s stale review October 21, 2020 17:19

Pull request has been modified.

Specifically, it enables this flag in the props of which resources use
an underlying Cfn EventSourceMapping, which carries the Enabled flag
itself.
These are currently: SQS, DynamoDb Streams and Kinesis.

Closes aws#5750
@wtho wtho force-pushed the wtho/event-sources-enabled-field branch from bd5e165 to b3af8fb Compare October 21, 2020 17:30
nija-at
nija-at previously approved these changes Oct 23, 2020
@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed nija-at’s stale review October 23, 2020 18:11

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 6742af3
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Oct 23, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit f4f53a6 into aws:master Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lambda event sources can't be added as disabled when using add_event_source method
3 participants