Yousef
09/24/2021, 3:40 PMAdrián Mouly
09/24/2021, 4:06 PMDennis Dang
09/28/2021, 6:19 AMthdxr
09/29/2021, 9:36 PMRoss Coundon
10/01/2021, 8:45 AMAshishkumar Pandey
10/04/2021, 12:51 AM-
(hyphens), what are these? I’ve never seen these before, is this something new in javascript? Code snippet for reference :-
cron.attachPermissions([
new cdk.aws() -
iam.PolicyStatement({
actions: ["execute-api:Invoke"],
effect: cdk.aws - iam.Effect.ALLOW,
resources: [
`arn:aws:execute-api:${region}:${account}:${api.httpApiId}/*`,
],
}),
]);
thdxr
10/04/2021, 4:55 PMthdxr
10/07/2021, 8:12 PMAshishkumar Pandey
10/10/2021, 12:05 AM<http://ap-south-1.dev.api.com|ap-south-1.dev.api.com>
, <http://us-west-1.dev.api.com|us-west-1.dev.api.com>
and <http://eu-south-1.dev.api.com|eu-south-1.dev.api.com>
. This would also create a problem of implementing some logic as to how to route requests from <http://dev.api.com|dev.api.com>
to the appropriate region. I believe Lambda@edge is one possible solution but how would I use it here? I could use it for routing requests to appropriate regions, I’ve heard of people doing that. I would love it if you awesome people could chime in with your opinions and experiences on how to build a global serverless API. Most of what I’ve read up involves people creating k8s clusters across multiple regions and using a service mesh such as Istio or Linkerd to coalesce those clusters together at L4. It would be great if we could figure out a L7 solution which needs minimal intervention / management.
I know, it’s a lot to ask, but I’d be grateful for any assistance.Devin
10/11/2021, 7:36 PMthdxr
10/11/2021, 8:06 PMsst start
to catch errors or do you generally rely on your editor?
Reason I'm asking is I'm seeing other code watching tools like Vite drop printing typescript errors in the console. Allows stuff to be reloaded faster if people are mostly looking at their editor. Can make it a bit trickier to find things you broke in other files thoughDennis Dang
10/11/2021, 9:37 PMthdxr
10/12/2021, 12:56 PMthdxr
10/12/2021, 3:26 PMRoss Coundon
10/12/2021, 6:44 PMthdxr
10/14/2021, 2:23 PMthdxr
10/14/2021, 10:34 PMTomasz Sobczyk
10/19/2021, 12:30 PMRoss Coundon
10/20/2021, 4:56 PMthdxr
10/20/2021, 7:36 PMAshishkumar Pandey
10/21/2021, 10:35 AMSam Hulick
10/21/2021, 11:30 PMSam Hulick
10/22/2021, 2:48 PMGarret Harp
10/22/2021, 5:45 PMimport { Record, String } from 'runtypes'
const DynamoItem = Record({
id: String,
something: String,
else: String
})
export const getItem = async (id: string, attributes?: Parameters<typeof DynamoItem.pick>) => {
const { Item } = await dynamo.get({ id }, { attributes })
if (!Item) throw new Error('No item')
return attributes ? DynamoItem.pick(attributes).check(Item) : DynamoItem.check(Item)
}
Currently its always the full "DynamoItem" type even when I call getItem('myItemId', 'id')
thdxr
10/23/2021, 3:43 PMSam Hulick
10/23/2021, 10:46 PMDamjan
10/26/2021, 12:12 PMAshishkumar Pandey
10/26/2021, 12:25 PMthdxr
10/27/2021, 3:57 PMthdxr
10/27/2021, 5:51 PM