Hi guys, I’m trying to set SES email receiving fe...
# help
i
Hi guys, I’m trying to set SES email receiving feature in which a lambda will be triggered every time an email is sent to a sub domain. I’m using SST and the main region I use is
eu-central-1
but unfortunately I found that SES email receiving feature (ReceiptRuleSet) isn’t enabled on this region. so I’ve tried set up another stack on a different region
eu-west-1
so I’m looking for help if anyone has done something similar to have stacks on different regions on the same app. I don’t know how should I run the
sst start
command as it’s by default deploying all stacks to the main region. I also found this thread https://serverless-stack.slack.com/archives/C01JG3B20RY/p1643119080123400 and wanted to follow up on it, if there’re any updates as mentioned it would be discussed internally @Jay
@Jay @Frank any updates?
f
Hey @Islam Salem, yeah that’s definitely a valid use case. It makes sense for SST to relax on the same-region constraint.
I bumped up the priority on this, and took down a note of ur use case https://github.com/serverless-stack/serverless-stack/issues/1299
For now, you can keep that stack in a separate app (with the same app name) and once SST supports multi-region, u can move that stack back into the same app seamlessly.
Or, (I really shouldn’t suggest this probably), but can u try this hack?
Copy code
new StackA(app, "stack-a");

// Temporarily change app's stage
const appStage = app.stage;
app.stage = "eu-west-1";
new StackB(app, "stack-b");
app.stage = appStage;

new StackC(app, "stack-b");
I don’t know if this will even work.. but maybe give it a try?
i
Hi @Frank thanks for your answer, looks like the hack is working. the two stacks are deployed to the desired regions as I needed However only the first one is shown in the sst console. but in general that’s a good solution for now. Thanks a lot for your time and support.