Artem Pabacham
01/27/2022, 1:02 PMJonathan
01/27/2022, 1:36 PMDan Van Brunt
01/27/2022, 3:02 PMJakub Przybytek
01/27/2022, 3:29 PMnpx sst update 0.60.5
here https://github.com/serverless-stack/serverless-stack/releasesDaniel Gato
01/27/2022, 5:12 PMaws-cdk-lib
» aws_cloudfront
» Distribution
instead?Richard Simpson
01/27/2022, 9:14 PMaws-cdk-lib
and do something like sst update
in an action when sst
gets bumped?Dan Van Brunt
01/27/2022, 9:36 PMDaniel Gato
01/28/2022, 1:42 PMconst iotAuthPolicy = new iot.CfnPolicy(this, 'IotAuthPolicy', {
policyName: 'iot-auth-policy',
policyDocument: {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "iot:*",
"Resource": "*"
}
]
},
});
This policy remains after we remove even when we define:
if (app.stage !== "prod") {
app.setDefaultRemovalPolicy(RemovalPolicy.DESTROY);
}
Alexandru Simandi
01/28/2022, 1:59 PM[stage]-[stack name]-[id]
I need it to be simply aml-person-flow
as we upload the assets to a custom release manager which requires it to have this nameMichael Robellard
01/28/2022, 6:11 PM[Error at /mike-local-chartflow-api-stack/Api] Found zones: [] for dns:<http://mike-local.chartflow.io|mike-local.chartflow.io>, privateZone:undefined, vpcId:undefined, but wanted exactly 1 zone
Found errors
Daniel Gato
01/28/2022, 6:49 PMDaniel Gato
01/28/2022, 9:00 PMdaniel-xx-iot failed: Export daniel-xx-iot:ExportsOutputFnGetAttAttachPolicy15792184Arn546FE958 cannot be deleted as it is in use by daniel-xx-api
And I did not remove anything from iot stack.
How can I prevent that?Manoel Feliciano
01/28/2022, 9:40 PMDerek Kershner
01/28/2022, 9:50 PMError: Cannot find module './RDS'
Require stack:
- /home/dkershner/actions-runner/_work/resonance-webapp-adminidentity-admin/resonance-webapp-adminidentity-admin/node_modules/@serverless-stack/resources/dist/index.js
- /home/dkershner/actions-runner/_work/resonance-webapp-adminidentity-admin/resonance-webapp-adminidentity-admin/.build/run.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/home/dkershner/actions-runner/_work/resonance-webapp-adminidentity-admin/resonance-webapp-adminidentity-admin/node_modules/@serverless-stack/resources/src/index.ts:3:1)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
The code looks good in src
(TS), but the output in dist
is Rds
...
Maybe the deploy box had a cached build folder or something, but I have reinstalled several times, and it always looks this way.Adam Fanello
01/29/2022, 12:27 AMemitDecoratorMetadata
here in slack and means of providing entire custom esbuild configurations. What is the easiest way to just get this metadata emitted under SST?Daniel Gato
01/29/2022, 6:39 PM{
"message": "Internal Server Error"
}
While on my SST console I get
da9b1007-54ce-4620-afd7-9c73d987e2d5 RESPONSE {"statusCode":200,"body":{...},"headers":{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Credentials":true,"Content-Type":"application/json"}}
Does this ring a bell? Furthermore, how should I go at it to debug this kind of errors?
When I open my ApiGateway url I indeed see the internal server errorfetian ans
01/29/2022, 8:05 PMAdrian Schweizer
01/30/2022, 1:13 PMJędrzej Kuryło
01/30/2022, 3:30 PMaws-sdk
. I copied node_modules/aws-sdk
, but now lambdas fail because of some other packages missing, which are dependencies of aws-sdk
. I added the ones that I saw missing in error messages jmespath
and xml2js
to the layer, but now it's failing because of missing xmlbuilder
, which is a dependency of xml2js
... There must be a better way to do that! 🙃Chad (cysense)
01/30/2022, 10:54 PM...
Bundling asset BackendStack-sandbox/SharedStack/UserAuthStack/PreSignUpTrigger/Code/Stage...
cdk.out/bundling-temp-e702d83a38335befa2ce80c0d9e739e24affb48fb1dbb835dfcc6cd7abc376aa/index.js 679.8kb
⚡ Done in 61ms
Bundling asset BackendStack-sandbox/SharedStack/UserAuthStack/CustomEmailTrigger/Code/Stage...
cdk.out/bundling-temp-c0128579c2ed4649c49753439a981d8b34efb5f71f14c53bac46e41c9fd3d523/index.js 225.1kb
...
We're using @aws-cdk/aws-lambda-go
and @aws-cdk/aws-lambda-nodejs
if that changes anythingGarret Harp
01/30/2022, 11:15 PMnpx create-serverless-stack@0.52.0 test
to try and test a construct on an older version since I havent taken the time to try and fully upgrade to v2 and getting this:Gita Alekhya Paul
01/31/2022, 5:10 AMnodeModules
option for a Node.js lambda function to entirely include a certain library
The sst start
command works perfectly and I have no issues in development, but sst deploy
fails with the following error:
Preparing your SST app
Synthesizing CDK
Building function src/consumers/sumsub.handler
SyntaxError: /DOCUMENTS/SSD/Quinence_Internship/zilliqa-marketplace-monorepo/packages/zilliqa-marketplace-backend/.sst/artifacts/c3a55ae5/package.json: Unexpected end of JSON input
I noticed that the package.json
referenced in the error is an empty file, not even a {}
Can someone help?Bshr Ramadan
01/31/2022, 11:56 AMGraphQLApi
construct that ApolloApi
doesn't have?
because there is no docs for it yetJędrzej Kuryło
01/31/2022, 4:48 PMyarn build
works fine when run in the nextjs app's folder. When I try to build my stack though, I'm getting an error
Error: There was a problem building the "testapp" NextjsSite.
at NextjsSite.buildApp (/Users/jedrzej/Workspace/testapp/packages/sst/node_modules/@serverless-stack/resources/src/NextjsSite.ts:600:13)
at new NextjsSite (/Users/jedrzej/Workspace/testapp/packages/sst/node_modules/@serverless-stack/resources/src/NextjsSite.ts:148:16)
...
I can see output from the next.js being built, there are no errors in there, the output is the same output I see when I build the app manually. Is there a way to get more information about what went wrong? I tried adding some console.logs in /Users/jedrzej/Workspace/testapp/packages/sst/node_modules/@serverless-stack/resources/src/NextjsSite.ts
to see what the original error caught in there was, but for some reason it doesn't have any effect, as if it was cached by nodejs or sth...Sam Hulick
01/31/2022, 6:18 PMGraphQL error: The function lambda/graphql/data-sources/track.main failed to build
just out of nowhere, some functions fail to run.. but then they’ll run again just fine. I’m on 0.60.8David Garcia
01/31/2022, 8:24 PMManoel Feliciano
01/31/2022, 10:17 PMTim V
01/31/2022, 11:56 PMDevin
02/01/2022, 12:59 AMStaticSite
and follows the Gatsby instructions pretty closely. I have a problem I don’t know how to solve so I’ll add everything that “seems” relevant.
When I look at s3 I can see two folders, which is unexpected. One folder is from the 26th and the other from the 30th (thats “correct”). Nonetheless when I navigate to <http://dev.comicshelper.com|dev.comicshelper.com>
it works, and you can click, blog, and it works great 🎉
However, if you navigate to <http://dev.comicshelper.com/blog|dev.comicshelper.com/blog>
directly, you get a 403. I do see the file /blog/index.html
in s3. Also, if I navigate to <http://dev.comicshelper.com/blog/index.html|dev.comicshelper.com/blog/index.html>
it finds the file and everything works great. Did I maybe misconfigure something in s3 or in route53? This doesn’t seem like a gatsby issue, but maybe I’m wrong or missing something goofy.Brinsley
02/01/2022, 11:00 AMScript
construct as a way of running migrations in a post-deploy process. Anyone know how to get logs from my functions to output in the console?