in autopilot/mlops/timeseries/aws-automl-ts-cdk/lib/autopilot-mlops-stack.ts [9:35]
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
const configRaw = fs.readFileSync('cdk-config/cdk-config.json', 'utf8');
const config = JSON.parse(configRaw);
const resourceBucket = new s3.Bucket(
this,
`${config.baseConstructName}-Bucket`,
{
bucketName: `${config.baseResourceBucket}-${
Stack.of(this).account
}`,
versioned: false,
autoDeleteObjects: true,
removalPolicy: RemovalPolicy.DESTROY,
},
);
const stateMachine = new StateMachine(
this,
`${config.baseConstructName}-StateMachine`,
{
resourceBucket: resourceBucket,
},
);
}