arda
10/12/2021, 4:26 PM> frontend@0.1.0 start
> sst-env -- react-scripts start
sst-env: Cannot find the SST outputs file in /Users/zhuangda/projects/notes. Make sure "sst start" is running.
arda
10/14/2021, 4:12 PM➜ notes git:(main) npx sst remove storage
Using stage: zhuangda
Preparing your SST app
Transpiling source
Linting source
Removing zhuangda-notes-storage
Checking remove status...
zhuangda-notes-storage | DELETE_IN_PROGRESS | AWS::CloudFormation::Stack | zhuangda-notes-storage
zhuangda-notes-storage | UPDATE_COMPLETE | AWS::CloudFormation::Stack | zhuangda-notes-storage
❌ zhuangda-notes-storage failed: Stack zhuangda-notes-storage failed to destroy: UPDATE_COMPLETE
Stack zhuangda-notes-storage
Status: failed
Error: Stack zhuangda-notes-storage failed to destroy: UPDATE_COMPLETE
Failed to remove the app
Tomasz Sobczyk
10/15/2021, 6:47 PMapig-test --username='*****' --password='*****' --user-pool-id='us-east-1_*****' --app-client-id='*****' --cognito-region='us-east-1' --identity-pool-id='us-east-1:*****' --invoke-url='<https://570f9qril4.execute-api.us-east-1.amazonaws.com>' --api-gateway-region='us-east-1' --path-template='/notes' --method='POST' --body='{"content":"hello world","attachment":"hello.jpg"}'
Results in:
Authenticating with User Pool Getting temporary credentials Making API request getaddrinfo ENOTFOUND 570f9qril4.execute-api.us-east-1.amazonaws.comc
Ömer Toraman
10/16/2021, 6:40 PMWe think this will give you a good foundation on building full-stack production ready serverless applications. If there are any other concepts or technologies you’d like us to cover, feel free to let us know on our forums.I would like to add a suggestion on that that adding a React Native project as well would be great, so that the guide really becomes truly full stack application that covers all platforms. React Native would be a good choice, as it is written in JavaScript as well and built on top of React. And the guide really seems exciting and very detailed (unlike most tutorials on the Web). Great job!
Ömer Toraman
10/17/2021, 2:02 AMRobin
10/19/2021, 8:04 AMimport * as sst from "@serverless-stack/resources";
import { RemovalPolicy } from "@aws-cdk/core";
export default class MyStack extends sst.Stack {
constructor(scope, id, props) {
super(scope, id, props);
// Counter table - DynamoDB
const table = new sst.Table(this, "Counter", {
fields: {
counter: sst.TableFieldType.STRING
},
primaryIndex: { partitionKey: "counter" },
dynamodbTable: { removalPolicy: RemovalPolicy.DESTROY }
});
// Next.js app
const site = new sst.NextjsSite(this, "Site", {
path: "frontend",
environment: {
// Pass the table details
REGION: scope.region,
TABLE_NAME: table.tableName
}
});
// NextJS access perms
site.attachPermissions([table]);
// Display site URL
this.addOutputs({
URL: site.url
});
}
}
Jay
Patrick Gold
10/24/2021, 11:47 PMsst start
? If so, how is that configured?
2. How are you handling Prisma client generation and migrations inside of a CI/CD pipeline? (I’m using Github Actions)
3. I haven’t gotten to the Prisma layer deployment yet, but anything tricky to note there?Jeff
10/29/2021, 11:34 PMsatish venkatakrishnan
11/02/2021, 5:28 AMnpm run remove
and then I have run npm run start
I am getting the following error
===============
Deploying app
===============
Deploying stacks
Checking deploy status...
dev-todoapp-todostorage | REVIEW_IN_PROGRESS | AWS::CloudFormation::Stack | dev-todoapp-todostorage
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | dev-todoapp-todostorage
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::DynamoDB::Table | TodoStorageTableCD70E466
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::CDK::Metadata | SSTMetadata
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::S3::Bucket | UploadsBucketC4B27CC7
dev-todoapp-todostorage | CREATE_FAILED | AWS::DynamoDB::Table | TodoStorageTableCD70E466 dev-todoapp-TodoStorage already exists
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::CDK::Metadata | SSTMetadata
dev-todoapp-todostorage | CREATE_COMPLETE | AWS::CDK::Metadata | SSTMetadata
dev-todoapp-todostorage | CREATE_IN_PROGRESS | AWS::S3::Bucket | UploadsBucketC4B27CC7
Checking deploy status...
Checking deploy status...
Checking deploy status...
dev-todoapp-todostorage | CREATE_COMPLETE | AWS::S3::Bucket | UploadsBucketC4B27CC7
dev-todoapp-todostorage | CREATE_FAILED | AWS::CloudFormation::Stack | dev-todoapp-todostorage
❌ dev-todoapp-todostorage failed: dev-todoapp-TodoStorage already exists
Stack dev-todoapp-todostorage
Status: failed
Error: dev-todoapp-TodoStorage already exists
Stack dev-todoapp-my-stack
Status: not deployed
Cannot convert undefined or null to object
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! todoapp@0.1.0 start: `sst start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the todoapp@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
Slawomir Stec
11/02/2021, 8:41 AMMatt Bulwan
11/05/2021, 5:18 AMimport { Architecture } from "@aws-cdk/aws-lambda";
...
app.setDefaultFunctionProps({
timeout: 120,
memorySize: 256,
architecture: Architecture.arm64,
....
Jon Holman
11/06/2021, 7:23 PMJay
Jay
Jay
Tonny (sstNerd)
12/01/2021, 8:31 AMyml
file which I remember is the way to do on serverlessframework but now that everything is SST and CDK I guess there is another way?Kujtim Hoxha
12/03/2021, 10:02 AMHamed Mamdoohi
12/06/2021, 1:41 AMTonny (sstNerd)
12/06/2021, 4:09 AMJay
Matt Bulwan
12/13/2021, 8:33 PMNoah D
12/17/2021, 10:38 AMmkarsene
12/18/2021, 8:11 AMTonny (sstNerd)
12/19/2021, 8:44 PMjamlen
12/20/2021, 9:07 AMJack G
12/21/2021, 9:44 AMMehmet Ali SARAÇ
12/21/2021, 4:26 PMCarlos Daniel
01/14/2022, 8:06 PMToby Harris
01/18/2022, 5:44 PM