infra/batch_pipeline_construct.py [74:102]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        schedule_rule_name = f"sagemaker-{project_name}-schedule-{construct_id}"

        # It seems the code build job requires  permissions to CreateBucket, despite the fact this exists
        code_build_role.add_to_policy(
            iam.PolicyStatement(
                actions=["s3:CreateBucket"],
                resources=[s3_artifact.bucket_arn],
            )
        )

        # Define AWS CodeBuild spec to run node.js and python
        # https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html
        pipeline_build = codebuild.PipelineProject(
            self,
            "PipelineBuild",
            project_name="sagemaker-{}-{}".format(project_name, construct_id),
            role=code_build_role,
            build_spec=codebuild.BuildSpec.from_object(
                dict(
                    version="0.2",
                    phases=dict(
                        install={
                            "runtime-versions": {
                                "nodejs": "12",
                                "python": "3.8",
                            },
                            "commands": [
                                "npm install aws-cdk",
                                "npm update",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



infra/build_pipeline_construct.py [75:103]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        schedule_rule_name = f"sagemaker-{project_name}-schedule-{construct_id}"

        # It seems the code build job requires  permissions to CreateBucket, despite the fact this exists
        code_build_role.add_to_policy(
            iam.PolicyStatement(
                actions=["s3:CreateBucket"],
                resources=[s3_artifact.bucket_arn],
            )
        )

        # Define AWS CodeBuild spec to run node.js and python
        # https://docs.aws.amazon.com/codebuild/latest/userguide/available-runtimes.html
        pipeline_build = codebuild.PipelineProject(
            self,
            "PipelineBuild",
            project_name="sagemaker-{}-{}".format(project_name, construct_id),
            role=code_build_role,
            build_spec=codebuild.BuildSpec.from_object(
                dict(
                    version="0.2",
                    phases=dict(
                        install={
                            "runtime-versions": {
                                "nodejs": "12",
                                "python": "3.8",
                            },
                            "commands": [
                                "npm install aws-cdk",
                                "npm update",
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



