Adrián Mouly
05/17/2022, 10:03 PMAdrián Mouly
05/17/2022, 10:04 PMthdxr
05/17/2022, 10:06 PMAdrián Mouly
05/17/2022, 10:06 PMAdrián Mouly
05/17/2022, 10:06 PMsuper() is failing nowAdrián Mouly
05/17/2022, 10:06 PMthdxr
05/17/2022, 10:06 PMthdxr
05/17/2022, 10:07 PMthdxr
05/17/2022, 10:07 PMAdrián Mouly
05/17/2022, 10:08 PMAdrián Mouly
05/17/2022, 10:09 PMconstructor(scope: Construct, id: string, props?: StackProps);Adrián Mouly
05/17/2022, 10:09 PMAdrián Mouly
05/17/2022, 10:11 PMAdam Fanello
05/17/2022, 10:12 PMscope parameters are still <http://sst.App|sst.App> in v1Adrián Mouly
05/17/2022, 10:12 PMAdrián Mouly
05/17/2022, 10:13 PM"@serverless-stack/cli": "^1.1.1",
"@serverless-stack/resources": "^1.1.1",Adrián Mouly
05/17/2022, 10:13 PMAdrián Mouly
05/17/2022, 10:13 PMAdam Fanello
05/17/2022, 10:13 PMAdrián Mouly
05/17/2022, 10:15 PMAdam Fanello
05/17/2022, 10:15 PMimport * as sst from "@serverless-stack/resources";
import { Stack, StackProps } from "@serverless-stack/resources";
import { RemovalPolicy } from "aws-cdk-lib";
import { Bucket, BucketEncryption } from "aws-cdk-lib/aws-s3";
import { Table } from "aws-cdk-lib/aws-dynamodb";
import DynamoDBTable from "./dynamodb-table.construct";
export interface DataStackProps extends StackProps {
isEphemeralStage: boolean;
}
/**
* Stack to hold persistent data:
* - DynamoDB table(s)
* - Data Lake
*/
export default class DataStack extends Stack {
public readonly primaryTable: Table;
public readonly dataLakeBucket: Bucket;
constructor(scope: <http://sst.App|sst.App>, id: string, props: DataStackProps) {
super(scope, id, props);Adrián Mouly
05/17/2022, 10:15 PM0.x, so planning to migrate to the latest.Adam Fanello
05/17/2022, 10:15 PMAdrián Mouly
05/17/2022, 10:16 PMAdrián Mouly
05/17/2022, 10:16 PMAdam Fanello
05/17/2022, 10:16 PMAdrián Mouly
05/17/2022, 10:17 PMAdrián Mouly
05/17/2022, 10:21 PMAdrián Mouly
05/17/2022, 10:21 PMAdrián Mouly
05/17/2022, 10:21 PMAdrián Mouly
05/17/2022, 10:21 PMFrank
Frank
@serverless-stack packages to 0.59.0 without the caret ^ for now
• remove node_modules and lock file
• install dependencies again
• buildFrank
Construct is a CDK v2 idea, so let’s make sure we update to 0.59.0 first.Drew
05/21/2022, 12:03 AMDrew
05/21/2022, 12:32 AMConstruct from your package.json? If it’s there?