Josh Moont
04/06/2022, 4:03 PMStack 'arn-aws-iam--xxxxxxxxxxx-my-stack' does not exist
Jared Utah
04/06/2022, 6:16 PMRoss Coundon
04/06/2022, 8:21 PMsst start
it deploys and starts up but then logs the message
Missing region in config
and aborts with
Process finished with exit code 130 (interrupted by signal 2: SIGINT)
The deploy command I’m using is
sst start --stage ross-dev --region eu-west-2
The stack itself looks like this:
import * as sst from '@serverless-stack/resources';
export default class WebSocketStack extends sst.Stack {
private api: sst.WebSocketApi;
private connectionsTable: sst.Table;
constructor(scope: <http://sst.App|sst.App>, id: string, props?: sst.StackProps) {
super(scope, id, props)
this.connectionsTable = this.createConnectionsTable();
this.api = this.createApi();
this.api.attachPermissions([this.connectionsTable]);
this.addOutputs({
ApiEndpoint: this.api.url
})
}
private createConnectionsTable(): sst.Table {
return new sst.Table(this, 'connections-table', {
fields: {
PK: sst.TableFieldType.STRING,
connectionId: sst.TableFieldType.STRING,
},
primaryIndex: {
partitionKey: 'PK',
}
})
}
private createApi(): sst.WebSocketApi {
return new sst.WebSocketApi(this, 'WebsocketApi', {
accessLog: false,
routes: {
$connect: "src/main/handlers/wsHandlers.webSocketHandler",
$disconnect: "src/main/handlers/wsHandlers.webSocketHandler",
sendMessage: "src/main/handlers/wsHandlers.webSocketHandler",
},
defaultFunctionProps: {
environment: {
CONNECTIONS_TABLE: this.connectionsTable.tableName,
REGION: this.region,
},
}
})
}
}
Any thoughts on what could be going on?Luis
04/06/2022, 9:38 PMnpx create-serverless-stack@latest notes --language typescript
), then, after running npm run start
I'm getting Missing region in config
. Does someone know how to fix this?gio
04/07/2022, 7:51 AMnew s3deploy.BucketDeployment(this, 'core-bucket-deployment', {
sources: [s3deploy.Source.asset('./backend/assets/core-bucket')],
destinationBucket: this.core_bucket.s3Bucket,
});
It works nice but I have a problem about permission, because some of these file (example app-logo.png) I want it with public permission but I can’t find a way to set permission on file.
Probably S3Deployment is not a right way to solve my need.
Do you know some solution? Actually I think the only solution is to use aws-sdk after cdk bucket creation, to manually set permission on files loaded with S3Deployment, or directly upload that files through sdk.Kujtim Hoxha
04/07/2022, 12:25 PMCasiel Didriksson Muriedas
04/07/2022, 3:05 PMShaun Hurley
04/07/2022, 5:53 PMHans Song
04/07/2022, 11:55 PM0.69.5
but i’m still getting the error addressed in that release when running sst start
manitej
04/08/2022, 3:33 AMIbrael Espinosa
04/08/2022, 11:08 AMSam Hulick
04/08/2022, 3:10 PMsst.Api
definition)
defaultAuthorizer: new HttpUserPoolAuthorizer(
'HttpUserPoolAuthorizer',
props.cognitoAuth.cognitoUserPool!,
{
userPoolClients: [props.cognitoAuth.cognitoUserPoolClient!],
}
),
I’m not sure how to get the issuer and audience from an sst.Auth
instanceSlawomir Stec
04/08/2022, 4:11 PMUday Bhaskar Gajavalli
04/08/2022, 5:28 PMSam Hulick
04/08/2022, 6:24 PMSam Hulick
04/08/2022, 6:31 PMsst.Api
customDomain working:
Type '{ cdk: { domainName: string; certificate: acm.ICertificate; }; }' is not assignable to type 'string | ApiDomainProps | undefined'.
The types of 'cdk.domainName' are incompatible between these types.
Type 'string' is not assignable to type 'IDomainName'.ts(2345)
the documentation says domainName can be a string, yet it’s complaining about thatSam Hulick
04/08/2022, 7:48 PMcdk
property in 1.0? like when defining a new EventBus, there’s rules.myRule.pattern
and rules.myRule.cdk.rule.eventPattern
. why are there two ways to define a pattern?Sam Hulick
04/08/2022, 10:28 PMCarlos Daniel
04/09/2022, 2:22 AMKarolis Stulgys
04/09/2022, 8:40 AM"start": "sst start && cd src/frontend && yarn dev",
emmanuel buah
04/10/2022, 4:22 PMesbuild
in sst. Specifically, how does one use --externals
to control bundling behavior? If not, is the recommended path to run sst build/start ..
on an already transpiled src use the customized esbuild
process.Robert Chandler
04/10/2022, 8:43 PMHttpUserPoolAuthorizer
from @aws-cdk/aws-apigatewayv2-authorizers
to create a Cognito jwt authoriser I get the following error:
Is this a version incompatibility issue between SST and Cognito?
Error: construct does not have an associated node. All constructs must extend the "Construct" base class
at Function.of (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/node_modules/constructs/src/construct.ts:30:13)
at new Node (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/node_modules/constructs/src/construct.ts:75:12)
at new ConstructNode (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/lib/construct-compat.ts:291:24)
at Object.createNode (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/lib/construct-compat.ts:78:11)
at new Construct (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/node_modules/constructs/src/construct.ts:575:26)
at new Construct (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/lib/construct-compat.ts:75:5)
at new Resource (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/core/lib/resource.ts:151:5)
at new HttpAuthorizer (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/aws-apigatewayv2/lib/http/authorizer.ts:159:5)
at HttpUserPoolAuthorizer.bind (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/aws-apigatewayv2-authorizers/lib/http/user-pool.ts:59:25)
at new HttpRoute (/home/robert/code/HeyDaily/heydaily-serverless/node_modules/@aws-cdk/aws-apigatewayv2-alpha/lib/http/route.ts:196:45)
Alfred Brose
04/11/2022, 3:45 PMMischa Spiegelmock
04/11/2022, 4:26 PMAPI
I set the defaults before instantiating the APIs
. it's all one stack
SST 0.69.5Victor Garcia
04/11/2022, 5:40 PMMischa Spiegelmock
04/11/2022, 6:03 PMsst deploy
my function can talk to my RDS DB just fine
When doing sst start
... no dice, the function can't reach RDS anymoreray
04/12/2022, 4:18 AMUday Bhaskar Gajavalli
04/12/2022, 6:49 AMJeremy Low
04/12/2022, 9:40 AMGethyn Jones
04/12/2022, 11:37 AM