Seems like it’s stuck here or is it doing somethin...
# help
f
Seems like it’s stuck here or is it doing something?
t
I've seen this before - @Frank do you know how to fix this? I forgot
f
Help! hehe
t
I think I ended up wiping my cdk bootstrap stack in the aws console to fix
but idk if that's necessary
this is a wild guess but are you using
static-site-env
?
f
@thdxr Nope. It’s a fresh install using
npx
Copy code
{
  "name": "one",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "test": "sst test",
    "start": "sst start",
    "build": "sst build",
    "deploy": "sst deploy",
    "remove": "sst remove"
  },
  "eslintConfig": {
    "extends": [
      "serverless-stack"
    ]
  },
  "devDependencies": {
    "@tsconfig/node14": "^1.0.1",
    "@types/aws-lambda": "^8.10.70",
    "@types/node": "<15.0.0",
    "typescript": "4.4.4",
    "@serverless-stack/cli": "0.69.7",
    "@serverless-stack/resources": "0.69.7",
    "aws-cdk-lib": "2.15.0"
  },
  "dependencies": {}
}
t
is there a reason you're not using 1.0.x ?
I don't think that'll fix your problem but probably should be on latest
f
This is my
package.json
do you mean the
"@serverless-stack/cli"
?
t
yeah all the sst packages
f
oh. No reason at all.
t
npm init sst
is the new way to start a project
f
I see
ok
I did this
$ npx create-serverless-stack@latest my-sst-app
I’ll redo
t
yeah we recently updated the docs with the new method
f
something like this?
Copy code
$ npm init serverless-stack@latest my-sst-app -- --language typescript
t
no just
npm init sst
f
Ok. Hold on
Still doing the same thing. Hehe
@thdxr
f
@Francis Menguito can you share ur
.build/sst-debug.log
?
f
Copy code
[2022-05-11T23:35:32.209] [DEBUG] core - bootstrap
[2022-05-11T23:35:36.138] [TRACE] core - After deploy stacks: [{"id":"francis-alloy-one-debug-stack","name":"francis-alloy-one-debug-stack","status":"pending","dependencies":[],"region":"us-east-1","startedAt":1652283332209,"events":[]}]
[2022-05-11T23:35:36.140] [INFO] default - Checking deploy status...
[2022-05-11T23:35:41.142] [TRACE] core - Initial stack states: [{"id":"francis-alloy-one-debug-stack","name":"francis-alloy-one-debug-stack","status":"pending","dependencies":[],"region":"us-east-1","startedAt":1652283332209,"events":[]}]
[2022-05-11T23:35:41.144] [TRACE] core - After update deploy statuses: [{"id":"francis-alloy-one-debug-stack","name":"francis-alloy-one-debug-stack","status":"pending","dependencies":[],"region":"us-east-1","startedAt":1652283332209,"events":[]}]
[2022-05-11T23:35:41.145] [DEBUG] core - deploy stack: started francis-alloy-one-debug-stack
[2022-05-11T23:35:41.145] [DEBUG] core - deploy stack: get pre-deploy status
[2022-05-11T23:35:42.168] [DEBUG] core - deploy stack: get pre-deploy status: stack does not exist
[2022-05-11T23:35:42.169] [DEBUG] core - deploy stack: addInUseExports
[2022-05-11T23:35:42.170] [DEBUG] core - deploy stack: isTemplateChanged
[2022-05-11T23:35:42.170] [DEBUG] core - deploy stack: run cdk deploy
[2022-05-11T23:35:42.178] [DEBUG] core - deploy stack: poll stack status
[2022-05-11T23:35:42.950] [TRACE] core - deploy stack: run cdk deploy: stderr:
✨  Synthesis time: 0.01s


[2022-05-11T23:35:42.951] [TRACE] core - deploy stack: run cdk deploy: stderr: francis-alloy-one-debug-stack: deploying...

[2022-05-11T23:35:43.150] [DEBUG] core - deploy stack: poll stack status: unknown
[2022-05-11T23:35:46.109] [TRACE] core - deploy stack: run cdk deploy: stderr:
 ❌  francis-alloy-one-debug-stack failed: Error: francis-alloy-one-debug-stack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see <https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html>)
    at CloudFormationDeployments.validateBootstrapStackVersion (/Users/cacho/Code/alloy-one/node_modules/aws-cdk/lib/api/cloudformation-deployments.ts:482:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at CloudFormationDeployments.publishStackAssets (/Users/cacho/Code/alloy-one/node_modules/aws-cdk/lib/api/cloudformation-deployments.ts:457:7)
    at CloudFormationDeployments.deployStack (/Users/cacho/Code/alloy-one/node_modules/aws-cdk/lib/api/cloudformation-deployments.ts:339:7)
    at CdkToolkit.deploy (/Users/cacho/Code/alloy-one/node_modules/aws-cdk/lib/cdk-toolkit.ts:209:24)
    at initCommandLine (/Users/cacho/Code/alloy-one/node_modules/aws-cdk/lib/cli.ts:341:12)

[2022-05-11T23:35:46.120] [TRACE] core - deploy stack: run cdk deploy: stderr:

[2022-05-11T23:35:46.120] [TRACE] core - deploy stack: run cdk deploy: stderr: francis-alloy-one-debug-stack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see <https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html>)

[2022-05-11T23:35:46.150] [DEBUG] core - deploy stack: run cdk deploy: exited with code 1
[2022-05-11T23:35:47.144] [DEBUG] core - deploy stack: poll stack status: cp exited
[2022-05-11T23:35:47.146] [DEBUG] core - deploy stack: done francis-alloy-one-debug-stack {
  status: 'failed',
  statusReason: 'not_bootstrapped',
  account: undefined,
  outputs: undefined,
  exports: undefined
}
Ohh
@Frank