Francis Menguito
05/11/2022, 2:12 PMthdxr
05/11/2022, 2:13 PMFrancis Menguito
05/11/2022, 3:03 PMthdxr
05/11/2022, 3:04 PMthdxr
05/11/2022, 3:04 PMthdxr
05/11/2022, 3:05 PMstatic-site-env
?Francis Menguito
05/11/2022, 3:11 PMnpx
Francis Menguito
05/11/2022, 3:12 PM{
"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": {}
}
thdxr
05/11/2022, 3:12 PMthdxr
05/11/2022, 3:12 PMFrancis Menguito
05/11/2022, 3:14 PMpackage.json
Francis Menguito
05/11/2022, 3:14 PM"@serverless-stack/cli"
?thdxr
05/11/2022, 3:14 PMFrancis Menguito
05/11/2022, 3:15 PMthdxr
05/11/2022, 3:15 PMnpm init sst
is the new way to start a projectFrancis Menguito
05/11/2022, 3:15 PMFrancis Menguito
05/11/2022, 3:15 PMFrancis Menguito
05/11/2022, 3:15 PMFrancis Menguito
05/11/2022, 3:15 PM$ npx create-serverless-stack@latest my-sst-app
Francis Menguito
05/11/2022, 3:15 PMthdxr
05/11/2022, 3:16 PMFrancis Menguito
05/11/2022, 3:17 PM$ npm init serverless-stack@latest my-sst-app -- --language typescript
thdxr
05/11/2022, 3:17 PMnpm init sst
thdxr
05/11/2022, 3:17 PMFrancis Menguito
05/11/2022, 3:18 PMFrancis Menguito
05/11/2022, 3:21 PMFrancis Menguito
05/11/2022, 3:34 PMFrank
.build/sst-debug.log
?Francis Menguito
05/12/2022, 12:56 AM[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
}
Francis Menguito
05/12/2022, 12:56 AMFrancis Menguito
05/12/2022, 12:56 AM