spidermon icon indicating copy to clipboard operation
spidermon copied to clipboard

Fallback to scrapy AWS settings if not set

Open ejulio opened this issue 6 years ago • 0 comments

Currently, to send SES emails, we need to set SPIDERMON_AWS_ACCESS_KEY_ID and the other configs for that. Though, it may be the case of a single user configured in scrapy for file delivery and the same user is authorized to send emails. My idea is to read SPIDERMON_AWS_ACCESS_KEY_ID, and if it is empty, we can fallback to scrapy default AWS_ACCESS_KEY_ID. This way, if a single user is authorized to perform all the actions, we only need to set it once, not replicate the same configs.

ejulio avatar Sep 04 '19 12:09 ejulio