Hey guys, I’m hoping someone can help me with an i...
# help
b
Hey guys, I’m hoping someone can help me with an issue I’ve been having. I’ve been evaluating SST as possible avenue to simultaneously move away from Terraform and the faff with Serverless yaml files- managed to get everything running and deploying to a personal test environment no problem. As soon as I try to deploy to a different env. (UAT in this case) I get an error:
Copy code
uat-service-stack failed: The uat-service-stack stack failed to deploy.
Looking further up the logs I see this:
Copy code
Deploying stacks
uat-service-stack: deploying...
[0%] start: Publishing _sha_:current
[16%] fail: No bucket named 'cdk-blah-assets-ACCOUNT-REGION'. Is account ACCOUNT bootstrapped?
...
I’ve been trying to fix and Google around this problem for around three days and I’m just dead in the water. From what I’ve read, using
sst deploy
should take care of the CDK bootstrapping right? What am I missing here?
f
Hey @Brinsley! Try this: 1. Go to your AWS CloudFormation console 2. Look for a stack named
CDKToolkit
and delete it 3. run
sst deploy
again
Just to add a bit of context, when CDK bootstraps, it creates a CF stack named
CDKToolkit
. And the stack has an S3 bucket. You often get this error when the S3 bucket has been manually removed.
Copy code
No bucket named 'cdk-blah-assets-ACCOUNT-REGION'. Is account ACCOUNT bootstrapped?`
Let me know if the steps above works for you.
b
Thanks, will give this a go now 🙂
Strangely enough, if I look at the resources for the stack the named bucket is in there…
Ah, ignore that, clicking through it says it’s not found.
Smashed it. Thanks Frank. Saved me a lot of grey hairs 😂
f
Nice! 👍