Maged Mortaga
06/11/2022, 8:10 PMThrottling: Rate exceeded
very often when I start my application via sst start
.
Is it possible to find out what causes the Throttling?
From the stack trace I am only able to see that is was thrown by the AWS SDK.
It always occurs after the console prints the SST Console: <https://console.serverless-stack.com>
line.
If the error is not thrown, which happens after I wait between 10 - 30 minutes, it will print Debug session started. Listening for requests...
and work againIan
06/11/2022, 8:59 PMJon Holman
06/12/2022, 3:11 AMconst provider = new cognito.UserPoolIdentityProviderGoogle(stack, "Google", {
Is there a way I can provide my Google clientId and clientSecret directly to the Auth constructor?
Do I need an identity pool if I'm not providing access to AWS services (if not, how do I do that via the SST's Auth constructor)?
Thanks for your help.Wyatt Goettsch
06/13/2022, 5:31 AMFrancis Menguito
06/13/2022, 7:07 AMFunction
construct for?Ian
06/13/2022, 8:14 AMSwapnil Bandiwadekar
06/13/2022, 8:38 AMMagnus Nordin
06/13/2022, 12:15 PMKarolis Stulgys
06/13/2022, 2:37 PMcustomDomain
something like api-hello.great.world.com ? let's say I own world.com domain from aws. I try something similar but when it's deployed the customDomain is still not what I named itIvo Evans-Storrie
06/13/2022, 3:26 PMScript
construct to upload some assets to a bucket. It's working, but the rollback feature isn't working as expected - when the function fails, it retries once and then nothing happens. The stack never finishes deploying, or becomes marked as a failed deploy (it's been about 50 minutes at time of writing). I can see my function code is working as expected - in the code snippet below, "2" is logged. Does anyone have any idea what else could be wrong?
import * as debug from "../debug";
import { Handler } from "aws-lambda";
type Script<TParams = Record<string, never>, TResult = unknown> = Handler<{ params: TParams }, TResult>;
const aspect = <TParams>(lambda: Script<TParams>): typeof lambda => {
return async (event, context, callback) => {
debug.init(event);
try {
const res = await lambda(event, context, callback);
return res;
} catch (error) {
console.log("1");
debug.flush(error);
console.log("2");
throw error;
}
};
};
export default aspect;
mickey phoenix
06/13/2022, 4:36 PMKarolis Stulgys
06/13/2022, 7:20 PMNextjsSite
construct to deploy my site and use nextjs /api
route for lambda endpoints right? What's the pros/coins instead of using sst Api
construct?Vegard Bjørsvik
06/13/2022, 8:43 PMnpm init sst
or can I just update an existing project with the config files and package.json
?Eric
06/14/2022, 12:47 AMRohith Gilla
06/14/2022, 5:21 AMMirza
06/14/2022, 12:32 PMauth.attachPermissionsForAuthUsers([
// Allow access to the API
api,
// Policy granting access to a specific folder in the bucket
new iam.PolicyStatement({
actions: ['s3:*'],
effect: iam.Effect.ALLOW,
resources: [
bucket.bucketArn + '/private/${<http://cognito-identity.amazonaws.com:sub|cognito-identity.amazonaws.com:sub>}/*',
],
}),
]);
I get the following error:
Type 'PolicyStatement' is not assignable to type 'string | Omit<string, SupportedPermissions> | IConstruct | [IConstruct, string] | PolicyStatement'.
Type 'PolicyStatement' is missing the following properties from type 'PolicyStatement': action, notAction, principal, notPrincipal, and 3 more.ts(2322)
Mirza
06/14/2022, 12:53 PMIdentityPoolId: auth.cognitoIdentityPoolId,
error:
property) IdentityPoolId: string | undefined
Type 'string | undefined' is not assignable to type 'string | CfnOutputProps'.
Type 'undefined' is not assignable to type 'string | CfnOutputProps'.ts(2322)
Slackbot
06/14/2022, 1:30 PMViswa
06/14/2022, 2:22 PMSakar
06/14/2022, 4:27 PMHi, In old version we set the permission like this api.ALLattachPermissions(sst.PermissionType.ALL); how to do it in new version.
Tobias T
06/14/2022, 5:27 PMDavid Garcia
06/14/2022, 5:54 PMdefaultAuthorizer
is for an sst.API if you don't pass one in. Does anyone know? I'm trying to have a ternary based on environment, if my environment is nonprod, would setting the defaultAuthorizer
to undefined break the deploy process?Joshua Borton
06/14/2022, 6:20 PMhttpMethod
on the event but while using SST, this is always undefined
. What is the correct way to access the http method here?Adrián Mouly
06/14/2022, 9:01 PMMatt k
06/14/2022, 9:06 PMFrancis Menguito
06/15/2022, 7:23 AMKarolis Stulgys
06/15/2022, 7:59 AMRemixjsSite
will be added as a construct?Justin Robinson
06/15/2022, 1:02 PMDaniel Ashcraft
06/15/2022, 3:33 PM✘ [ERROR] Top-level await is not available in the configured target environment ("node14")
node_modules/@serverless-stack/resources/dist/AppSyncApi.js:4:26:
4 │ const { mergeTypeDefs } = await Util.weakImport("@graphql-tools/merge");
justindra
06/15/2022, 5:05 PM