constructor()

in infrastructure/lib/infrastractureStack.ts [25:63]


    constructor(scope: cdk.App, id: string, props: InfrastractureStackProps) {
        super(scope, id, props);

        const dataSource = new DataSourceConstruct(this, 'DataSource');

        const sageMaker = new SageMakerConstruct(this, 'SageMakerConstruct', {
            dataBucket: dataSource.dataBucket,
        });

        const codePipeline = new CodePipelineConstruct(this, 'CodePipeline', {
            ...props,
            dataManifestBucket: dataSource.dataManifestBucket,
            sageMakerArtifactBucket: sageMaker.sagemakerArtifactBucket,
            sageMakerExecutionRole: sageMaker.sagemakerExecutionRole,
        });

        new cdk.CfnOutput(this, 'CodePipelineOutput', {
            value: codePipeline.pipeline.pipelineName
        });

        new cdk.CfnOutput(this, 'DataBucketOutput', {
            value: dataSource.dataBucket.bucketName,
            exportName: 'MLOpsE2EDemo-DataBucket',
        });

        new cdk.CfnOutput(this, 'DataManifestBucketOutput', {
            value: dataSource.dataManifestBucket.bucketName
        });

        new cdk.CfnOutput(this, 'SageMakerArtifactBucketOutput', {
            value: sageMaker.sagemakerArtifactBucket.bucketName,
            exportName: 'MLOpsE2EDemo-SageMakerArtifactBucket',
        });

        new cdk.CfnOutput(this, 'SageMakerExecutionRoleOutput', {
            value: sageMaker.sagemakerExecutionRole.roleArn,
            exportName: 'MLOpsE2EDemo-SageMakerExecutionRole',
        });
    }