Bshr Ramadan
10/08/2021, 7:46 PMSam Hulick
10/08/2021, 7:59 PM? Something is already running on port 12577.
I did kill -9
for any related processes. doesn’t seem to do the trickKujtim Hoxha
10/08/2021, 9:48 PM/
gracefully e.x abc/hello/{123}
and abc/hello/{123}/
should be both accepted and go to the same functionErik Robertson
10/09/2021, 1:50 AMnpx aws-api-gateway-cli-test
Now my question is do I make authenticated calls to the api from my client browser. I do not want to use Amplify. So far I have managed to login and fetch tokens using amazon-cognito-identity-js which is all very nice and gives me access+id+refresh tokens but once I have that how do I wrap things up to properly call the /private entrypoint in my API ?
Thanks !kierans777
10/09/2021, 4:03 AMdev
, test
, prod
and so on. I stumbled on serverless-stack and realised where SST was better than my own (hastily) home rolled solution and I've looked into porting. I have one question regarding the management of stages/deploying.
In my current CDK project, I have multiple "apps" (that is bin/*.ts
) to represent different logical areas of infrastructure. For example a "global" app for things like Hosted Zones, an "identity" app for different identity concerns, an "api" app for deploying my public facing API into multiple regions (I'm using Regional API Gateways with Route 53 latency policies). My CI/CD pipelines can then run each app as required into the correct regions/stages and it all works.
However with SST there are no more "apps", just the stacks/index.js
. I'm wondering how to port my CDK apps to the SST setup to maintain my existing separation of stacks into their logical areas.kierans777
10/09/2021, 11:57 AMApiGatewayV1ApiRouteProps
instance without a Function, but just an API Gateway Mock Integration? Or will I get errors from SST?kierans777
10/09/2021, 1:15 PM/accounts/{id}/transactions
? All the examples are single path segments like /notes
but the app I want to port to SST have multi pathDevin
10/09/2021, 4:59 PMnpm run test
at the project root i get
cannot find module babel-jest
with a project path pointing to:
node_modules/@serverless-stack/cli/scripts/util/babelJestTransform.js
if I install babel and drop in a config
babelJest.createTransformer is not a function
also in the CLI.
How i got here was I added a test in the react app, then deploy’s broke on Seed.run
see the previous thread here. At that time, at least the tests worked for the App, just not the react app.
https://serverless-stack.slack.com/archives/C01JG3B20RY/p1633213092119300Jonathan Chapman
10/09/2021, 7:15 PM{"message":"Forbidden"}
. When I switch between using start
and deploy
it will fix the issue for one lambda, but it at times it causes other service to return the same message. The logs for the API gateway don't really show anymore details then returning the 403. My setup is with three stacks.
• StorageStack: DynameDB setups here
• ApiStack: REST services and use one Lambda Authorizer for all services
• WebSocketStack: Websocket rervices
Any tips on where I can start to debug this?Ömer Toraman
10/10/2021, 6:37 PMJoão Pedro
10/10/2021, 8:01 PMdependencies
and my devDependencies
, but on of my dev dependencies, even though it’s not a dependency of any of the dependencies, it’s going to the deployed lambda…is that expected?
2 - is there tree-shaking when deploying the lambdas?arda
10/11/2021, 1:58 AMChad (cysense)
10/11/2021, 3:17 AMconst app = new <http://cdk.App|cdk.App>();
new BackendStack(app, `BackendStack-dev`, {
...
new FrontendStack(app, `FrontendStack-dev`, {
...
new BackendStack(app, `BackendStack-sandbox`, {
...
new FrontendStack(app, `FrontendStack-sandbox`, {
...
So if I want to deploy to sandbox
I can do something like this:
cdk deploy --require-approval never BackendStack-sandbox 'BackendStack-sandbox/**' FrontendStack-sandbox
The problem is everytime I synth/deploy CDK synths all stacks before dropping them for final output. The issue is that if I have time consuming operations (such as building assets) in my develop stack, I need to wait for them to complete when deploying to my sandbox stack. A solution I have found is to wrap the above constructs in if statements. This works but now I want to use the stack names I passed to cdk deploy. Does anyone know how I can reference this in code? In the example above I would like to get BackendStack-sandbox 'BackendStack-sandbox/**' FrontendStack-sandbox
.
I thought this would appear in the context but I am not seeing it anywhere.ahmed elkordy
10/11/2021, 3:55 AMJiri Orsag
10/11/2021, 8:18 AMGarret Harp
10/11/2021, 4:51 PMÖmer Toraman
10/11/2021, 6:03 PMSAM
app is this repository in SAR: https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:374852340823:applications~auto-set-log-group-retention
So I have two questions.
1. How can I see the current retention for a stack?
2. Can I change it without per stack without specifying every log group for a function one by one?Dan Van Brunt
10/11/2021, 7:33 PMlambda.SingletonFunction
which makes a ton of sense if you are building a construct that could be used a number of times in the same stack…. you would not want it to reimplement the CR function as many times.
However, I’d like to be able to use the same asset compression for functions that sst.Function
gives you.
Am I missing something, is there an easy way to have my cake and eat it too?Mr.9715
10/12/2021, 6:17 AMÖmer Toraman
10/12/2021, 7:14 AM4XX
and and 5XX
status codes.
It’s possible that a runtime error thrown, or simply ran out of memory, or timed out. But at the end, it is still the case that APIGateway responds, in this case the statusCode would be some 5XX’s, so I would know that there is something wrong with the Lambda.
As I read AWS::Serverless::Function
resource properties, I see that there are two properties might be relevant, but I’m really not sure how they differ, and which one to be chosen.
What is really the difference between DeadLetterQueue
vs EventInvokeConfiguration
Brinsley
10/12/2021, 9:25 AMarda
10/12/2021, 2:20 PMDan Van Brunt
10/12/2021, 3:15 PMRubin Damian
10/12/2021, 4:45 PMDan Van Brunt
10/12/2021, 8:41 PM--no-rollback
option like cdk CLI does?Garret Harp
10/12/2021, 8:51 PMNick Laffey
10/12/2021, 9:08 PMPaulo Silva
10/12/2021, 10:20 PMSebastian Sieber
10/13/2021, 2:12 AMnpx sst remove
I went into AWS and "cleaned up" whatever wasn't removed... apparently not a good idea, because if I now run npx sst start
I get the following error:
Deploying stacks
dev-1xxxxx-debug-stack: deploying...
[0%] start: Publishing xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:current
[50%] fail: No bucket named 'cdk-xxxxxxxxxxx-assets-xxxxxxxxx-us-east-1'. Is account xxxxxxxxxxxxxxxxxx bootstrapped?
[50%] start: Publishing xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:current
[100%] fail: No bucket named 'cdk-xxxxxxxxxxxxxx-assets-xxxxxxxxxxxx-us-east-1'. Is account xxxxxxxxxxxxx bootstrapped?
There should be a simple solution to this, unfortunate wasn't able to find any answers online, appreciate any help!Brinsley
10/13/2021, 6:52 AMapp
var to pass to the sst.Stack super
. Anyone else come across anything like this before?