Sean Matheson
11/09/2021, 3:47 PMkysely-data-api
data provider? If so, how are you finding it? I am keen to use it if ya'll think it's stable enough to do so.Daniel
11/09/2021, 6:25 PMimport * as ec2 from '@aws-cdk/aws-ec2';
import * as rds from '@aws-cdk/aws-rds';
import * as sst from '@serverless-stack/resources'
import { FixMeLater } from '../src/types/FixMeLater';
export default class RdsStack extends sst.Stack {
public readonly vpc: FixMeLater
public readonly rmwDb: FixMeLater
constructor(scope: <http://sst.App|sst.App>, id: string, props?: sst.StackProps) {
super(scope, id, props)
// Attach to the existing VPC
this.vpc = ec2.Vpc.fromLookup(this, 'VPC', {
vpcId: 'vpc-**********'
})
// Attach to the existing RM Workspace RDS instance
this.rmwDb = rds.DatabaseInstance.fromDatabaseInstanceAttributes(this, 'RMWDB', {
instanceIdentifier: '*******-staging-rds',
instanceEndpointAddress: '********************.<http://rds.amazonaws.com|rds.amazonaws.com>',
engine: rds.DatabaseInstanceEngine.postgres({
version: rds.PostgresEngineVersion.VER_11_12
}),
securityGroups: [],
port: 5432
})
}
}
Clayton
11/09/2021, 11:00 PMDan Van Brunt
11/10/2021, 2:07 PMSean Matheson
11/10/2021, 4:30 PMSean Matheson
11/10/2021, 4:44 PMAdrián Mouly
11/11/2021, 3:45 PMSeth Geoghegan
11/11/2021, 7:11 PMsst start
.David Martin
11/11/2021, 7:22 PM"eslintConfig": {
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/*.js", "**/*/dist", "**/*/node_modules"],
"rules": {
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-redeclare": ["error"],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"extends": ["serverless-stack"],
"parserOptions": {
"project": "../../../tsconfig.json"
}
}
Dan Van Brunt
11/12/2021, 7:27 PMsh: gatsby: command not found
locally if I run yarn build
(which is the build command we are telling sst to run) then everything works fine.
Perhaps this has something to do with how Yarn v2 now handles exposing these depenceny’s bin now?
Sound like they are adding the bins to the PATH which I’m guessing maybe SST isn’t making available to the build commands?Ömer Toraman
11/13/2021, 10:06 PMimport * as sst from "@serverless-stack/resources"
import * as events from '@aws-cdk/aws-events'
new sst.EventBus(this, 'myBus', {
eventBridgeEventBus: {
eventBusArn: events.EventBus.fromEventBusArn(this, 'ImportedBus', 'eventBusArn'
}
})
Seems the same with an example in the docs:
https://docs.serverless-stack.com/constructs/EventBus#importing-an-existing-eventbusMike McCall
11/14/2021, 1:40 AMMike McCall
11/14/2021, 2:45 PMLambdaFunction
as a function type. It has to be a Function
from sst. However I cannot use sst's Function
as a type in another construct because it is banned. Am I missing something?
Don't use `Function` as a type. The `Function` type accepts any function-like value.
It provides no type safety when calling the function, which can be a common source of bugs.
It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.
If you are expecting the function to accept certain arguments, you should explicitly define the function shape
Mike McCall
11/14/2021, 3:13 PMJoe Kendal
11/14/2021, 9:17 PMDavid Martin
11/15/2021, 12:56 AMRyan
11/15/2021, 7:40 AMUncharted
11/15/2021, 1:09 PMAdrián Mouly
11/15/2021, 2:00 PMcustomDomain
property, but just to use Certificate and Alias… I don’t have a “domainName” per se in route 53.
But this value is required, can be bypassed?
customDomain: {
domainName: null,
alternateNames: [
'<http://mysite.io|mysite.io>',
],
certificate,
}
Is there a way to define this null?Adrián Mouly
11/15/2021, 11:30 PMMuhammad Ali
11/16/2021, 12:01 AMSean Matheson
11/16/2021, 8:07 AMRyan
11/16/2021, 2:25 PMNick Laffey
11/16/2021, 9:58 PM--port
flag on sst start
was removed. Was that intentional? Is there any new way to specify the port being used?Drew
11/16/2021, 11:04 PMsst deploys
in parallel--and hit AWS RATE LIMITS?Drew
11/16/2021, 11:57 PMAdrián Mouly
11/17/2021, 3:59 AMMike McCall
11/17/2021, 2:22 PMAustin
11/17/2021, 11:00 PMLukasz K
11/18/2021, 8:55 AM