Stephen McGowan
01/07/2022, 11:10 AMOmi Chowdhury
01/07/2022, 11:35 AMStephen McGowan
01/07/2022, 11:46 AMOmi Chowdhury
01/07/2022, 11:48 AMOmi Chowdhury
01/07/2022, 11:50 AMimport { Duration } from '@aws-cdk/core';
import { App, Queue, Stack } from '@serverless-stack/resources';
import { StackProps } from 'sst-resources/types';
export default class SinkQueueStack extends Stack {
constructor(app: App, id: string, props: StackProps) {
super(app, id, props);
new Queue(this, `${id}-${app.stage}`, {
sqsQueue: {
retentionPeriod: Duration.seconds(60), // 60s is the min
},
});
}
}
Stephen McGowan
01/07/2022, 11:52 AMthdxr
01/07/2022, 2:07 PMthdxr
01/07/2022, 2:07 PM