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

Remove Unnecessary Serverless Permission #908

Merged
merged 3 commits into from
Jun 27, 2022
Merged

Remove Unnecessary Serverless Permission #908

merged 3 commits into from
Jun 27, 2022

Conversation

samchungy
Copy link
Contributor

@samchungy samchungy commented Jun 27, 2022

This perm is only needed if we configure asynchronous invocation and use the onError configuration but SQS is a synchronous invocation and SQS handles the dead-lettering itself.

@changeset-bot
Copy link

changeset-bot bot commented Jun 27, 2022

🦋 Changeset detected

Latest commit: 2a1ab7a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
skuba Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@samchungy samchungy marked this pull request as ready for review June 27, 2022 08:01
@samchungy samchungy requested review from a team as code owners June 27, 2022 08:01
@samchungy samchungy changed the title Remove Unnecessary Permission Remove Unnecessary Serverless Permission Jun 27, 2022
Copy link
Member

@72636c 72636c left a comment

Choose a reason for hiding this comment

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

Good catch. This was a copy+paste from our internal guidance for workers to perform their own in-process re-queuing and DLQing to avoid throttling, though without the actual logic to do so because we haven't open sourced any helper package to achieve this yet.

https://tech-strategy.ssod.skinfra.xyz/docs/v1/technology.html#performance-degradation-on-lambda-function-errors

This has been partially superseded by batch failure reporting, though the "immediate DLQ" case still stands:

https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting

@samchungy samchungy merged commit 4f09258 into master Jun 27, 2022
@samchungy samchungy deleted the sls-perms branch June 27, 2022 11:31
@seek-oss-ci seek-oss-ci mentioned this pull request Jun 27, 2022
72636c pushed a commit that referenced this pull request Sep 10, 2022
* Remove unnecessary permission

* Create sharp-ads-clean.md

* Update sharp-ads-clean.md
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.

None yet

2 participants