Adrián Mouly
09/07/2021, 3:30 AMdev
for local development and PRs. Of course each developer is going to have their own stage.
Thoughts? 🙂Simon Reilly
09/07/2021, 8:21 AMFrank
getOrCreate
pattern. And I liked it. So in this case, ur core stack can look like this:
if (stage === "dev-main") {
this.vpc = new ec2.Vpc(...)
}
else if (stage.startsWith ("dev-")) {
this.vpc = ec2.Vpc.lookup(...)
}
Frank
this.vpc
can be passed to other stacks.Adrián Mouly
09/08/2021, 1:03 AMAdrián Mouly
09/08/2021, 1:04 AMAdrián Mouly
09/08/2021, 1:04 AMAdrián Mouly
09/08/2021, 1:04 AMstart
and remove
from their local, and I don’t want to delete VPN/VPC for example.Frank
sst remove --stage de-main
. Is that what you mean?Adrián Mouly
09/08/2021, 2:20 AMsst remove
Adrián Mouly
09/08/2021, 2:20 AMAdrián Mouly
09/08/2021, 2:20 AMAdrián Mouly
09/08/2021, 2:21 AMAdrián Mouly
09/08/2021, 2:21 AMAdrián Mouly
09/08/2021, 2:33 AMAdrián Mouly
09/08/2021, 2:33 AMFrank
sst remove --stage dev-joe
, the VPC won’t be removed. The core stack will only get removed by sst remove --stage dev-main
.Adrián Mouly
09/08/2021, 2:40 AM