Dan Van Brunt
12/08/2021, 6:46 PMDan Van Brunt
12/08/2021, 6:47 PMDan Greaves
12/08/2021, 10:38 PMDISABLE_ELASTICACHE=true sst deploy
Then in your stack, you can only add the ElastiCache construct if the environment variable is not set.
if (!process.env.DISABLE_ELASTICACHE) ...add construct
With regards to deploying to a different account, it’s probably better to control that at the credential level. I personally use Leapp to switch between accounts, but others use AWS Vault.
SST or CDK itself usually isn’t really concerned with the account. It just deploys with whatever credentials you tell it to, which are tied to an account.Dan Greaves
12/08/2021, 10:39 PMFrank
Dan Van Brunt
12/09/2021, 2:40 PMDan Van Brunt
12/09/2021, 2:44 PMDan Van Brunt
12/10/2021, 3:28 AMDan Van Brunt
12/11/2021, 12:14 AMDan Greaves
12/11/2021, 12:58 AMFrank
Frank