You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now setup Seed to deploy the SLS stacks on every PR, like below:
Current behaviour
Stack is created correctly when PR is created, Seed correctly handles deploying first Stack1, next Stack2.
When PR is closed, only Stack2 is deleted, Stack1 is not because of the below error (for some reason Seed wants to delete them 2 simultaneously, rather than one by one)
(on the below screenshot SfStack is Stack2 from our example above (dependant), while MyStack is Stack1 from the example)
Expected behaviour
When PR is closed, Seed deletes dependant stacks one by one, not all of them at once
Stack
Seed is instructed to use node in version 16.14.2 - there is nothing more in seed.yml other than that n 16.14.2 in before_compile stage
SST version: 2.1.26
I know that there is a possibility to configure deploy phases, however, when I have 2 stacks defined as above in one sst.config.ts, I see that there is no way to distinguish these 2 as separate stacks in Seed. Is there a way to do it like that or if I want to use seed and keep the dependencies between stacks, I should have a separate service as a different SST project (with its own custom directory in my monorepo and sst.config.ts) to make it work like that?
PS1: I am aware that this issue is submitted in seed-run/homepage repository, however, I couldn't find better place to submit this issue.
PS2: When deleting the stacks via SST (npx sst remove), this problem doesn't occur, i.e. SST honours the dependencies between stacks properly.
The text was updated successfully, but these errors were encountered:
Drodevbar
changed the title
Seed has troubles with deleting dependant SST stacks
[Auto-Deploy PR] Seed tries to delete 2 dependant SST stacks simultaneously
Mar 23, 2023
Drodevbar
changed the title
[Auto-Deploy PR] Seed tries to delete 2 dependant SST stacks simultaneously
[Auto-Deploy PR] Seed tries to delete 2 dependant SST stacks defined in the same sst.config.ts simultaneously
Mar 24, 2023
Steps to reproduce
Create SLS app with 2 stacks. For example:
stack 1
stack 2 (dependant on stack1)
Import the stacks together in
sst.config.ts
Now setup Seed to deploy the SLS stacks on every PR, like below:
Current behaviour
Stack1
, nextStack2
.Stack2
is deleted,Stack1
is not because of the below error (for some reason Seed wants to delete them 2 simultaneously, rather than one by one)(on the below screenshot
SfStack
isStack2
from our example above (dependant), whileMyStack
isStack1
from the example)Expected behaviour
Stack
seed.yml
other than thatn 16.14.2
inbefore_compile
stageI know that there is a possibility to configure deploy phases, however, when I have 2 stacks defined as above in one
sst.config.ts
, I see that there is no way to distinguish these 2 as separate stacks in Seed. Is there a way to do it like that or if I want to use seed and keep the dependencies between stacks, I should have a separate service as a different SST project (with its own custom directory in my monorepo andsst.config.ts
) to make it work like that?PS1: I am aware that this issue is submitted in
seed-run/homepage
repository, however, I couldn't find better place to submit this issue.PS2: When deleting the stacks via SST (
npx sst remove
), this problem doesn't occur, i.e. SST honours the dependencies between stacks properly.The text was updated successfully, but these errors were encountered: