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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(AWS EventBridge): Ensure proper support for deadLetterConfig #10030

Merged
merged 1 commit into from Sep 30, 2021

Conversation

pgrzesik
Copy link
Contributor

@pgrzesik pgrzesik commented Sep 30, 2021

Fixes issue reported here: #9903 (comment)

I've also simplified the setting to avoid using nested arn or targetArn property as the deadLetterConfig has only single arn property. @medikoo Please let me know what do you think about it - do you think it's worth to still keep that nested?

Additionally, I've spotted and fixed a bug with setting the target config when more properties are involved.

I've manually tested it and it seems to work correctly 馃憤

@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #10030 (58d020b) into master (abbb18d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10030      +/-   ##
==========================================
- Coverage   85.89%   85.88%   -0.01%     
==========================================
  Files         333      333              
  Lines       13419    13416       -3     
==========================================
- Hits        11526    11523       -3     
  Misses       1893     1893              
Impacted Files Coverage 螖
...ns/aws/package/compile/events/eventBridge/index.js 98.34% <100.00%> (-0.04%) 猬囷笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update abbb18d...58d020b. Read the comment docs.

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

I've also simplified the setting to avoid using nested arn or targetArn property as the deadLetterConfig has only single arn property

Makes sense to me. I wonder that maybe we can improve this property name to deadLetterQueueArn. WDYT?

@pgrzesik pgrzesik force-pushed the fix-deadletterconfig-arn-setting branch from 77cdf54 to 58d020b Compare September 30, 2021 13:20
@pgrzesik
Copy link
Contributor Author

Sounds great to me @medikoo 馃憤

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Looks great 馃憤

@pgrzesik pgrzesik merged commit 846cfa1 into master Sep 30, 2021
@pgrzesik pgrzesik deleted the fix-deadletterconfig-arn-setting branch September 30, 2021 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants