Dynamic deployment to regions #119
Unanswered
abdulloooh
asked this question in
Q&A
Replies: 1 comment 12 replies
-
Hi @abdulloooh, in theory this would indeed work. Because if the deployments happen one after the other, then they won't write in parallel to However in Compose it's tricky to detect that the deployment will work or not. Let me show an example: # A
services:
api-1:
path: api
params:
region: us-east-1
api-2:
path: api
params:
region: us-east-2
# B
services:
api-1:
path: api
params:
region: us-east-1
api-2:
path: api
params:
region: us-east-2
dependsOn: api-1 Configuration A will not work, because deployment happens in parallel. Configuration B will work. But in Compose, how to properly detect and validate that? That's our challenge. Because we want to detect "A" and show an error to users (to avoid hidden surprises). |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Stated from serverless-compose FAQs that multi-region deployment is not supported in parallel which is understood.
However, What we are trying to do however is an equivalent of
sls deploy --r us-east-1
thensls deploy --r us-east-2
i.e deploying all the services to different regions one after the other with the flag-r
, not in parallel which is already stated as not currently supported.Is this possible in serverless-compose please? as our whole stack runs on 2 regions. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions