codepipeline/examples_pipeline.py [45:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    restart_execution_on_update=True,
    artifact_bucket=artifacts_bucket,
    stages=[
        codepipeline.StageProps(
            stage_name="Source",
            actions=[
                codepipeline_actions.GitHubSourceAction(
                    action_name="GitHub_Source",
                    repo="aws-emr-launch",
                    branch=pipeline_params["github-branch"],
                    owner=pipeline_params["github-owner"],
                    oauth_token=core.SecretValue.secrets_manager(
                        secret_id=deployment_secret["secret-id"],
                        json_field=deployment_secret["json-fields"]["github-oauth-token"],
                    ),
                    trigger=codepipeline_actions.GitHubTrigger.WEBHOOK,
                    output=source_output,
                )
            ],
        ),
        codepipeline.StageProps(
            stage_name="Self-Update",
            actions=[
                codepipeline_actions.CodeBuildAction(
                    action_name="Self_Deploy",
                    project=codebuild.PipelineProject(
                        stack,
                        "CodePipelineBuild",
                        build_spec=codebuild.BuildSpec.from_source_filename("codepipeline/pipelines-buildspec.yaml"),
                        role=code_build_role,
                        environment=codebuild.BuildEnvironment(
                            build_image=codebuild.LinuxBuildImage.STANDARD_4_0,
                            environment_variables={
                                "PROJECT_DIR": codebuild.BuildEnvironmentVariable(value="codepipeline"),
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



codepipeline/release_pipeline.py [55:88]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    restart_execution_on_update=True,
    artifact_bucket=artifacts_bucket,
    stages=[
        codepipeline.StageProps(
            stage_name="Source",
            actions=[
                codepipeline_actions.GitHubSourceAction(
                    action_name="GitHub_Source",
                    repo="aws-emr-launch",
                    branch=pipeline_params["github-branch"],
                    owner=pipeline_params["github-owner"],
                    oauth_token=core.SecretValue.secrets_manager(
                        secret_id=deployment_secret["secret-id"],
                        json_field=deployment_secret["json-fields"]["github-oauth-token"],
                    ),
                    trigger=codepipeline_actions.GitHubTrigger.WEBHOOK,
                    output=source_output,
                )
            ],
        ),
        codepipeline.StageProps(
            stage_name="Self-Update",
            actions=[
                codepipeline_actions.CodeBuildAction(
                    action_name="Self_Deploy",
                    project=codebuild.PipelineProject(
                        stack,
                        "CodePipelineBuild",
                        build_spec=codebuild.BuildSpec.from_source_filename("codepipeline/pipelines-buildspec.yaml"),
                        role=code_build_role,
                        environment=codebuild.BuildEnvironment(
                            build_image=codebuild.LinuxBuildImage.STANDARD_4_0,
                            environment_variables={
                                "PROJECT_DIR": codebuild.BuildEnvironmentVariable(value="codepipeline"),
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



