diff --git a/templates/code_pipeline.yml b/templates/code_pipeline.yml index 0753cab..8eaf4e8 100644 --- a/templates/code_pipeline.yml +++ b/templates/code_pipeline.yml @@ -143,61 +143,6 @@ Resources: TimeoutInMinutes: 5 - - ################################# - #Production Code Build that runs python - #tests and deploys code to prod - # - ################################### - ProdCodeBuildDeploy: - #Need the ProdArtifactsBucket Created first before This - #CodeBuild Project can start - DependsOn: ProdArtifactsBucket - Type: AWS::CodeBuild::Project - Properties: - #Output location for the CodeBuild Project - Artifacts: - Type: S3 - Location: - !Join ['', ['prod-build-', !Ref ProjectName]] - Packaging: NONE - #Allows for git badge at top of git repo - BadgeEnabled: true - #Where logs are written to from code build - LogsConfig: - CloudWatchLogs: - Status: ENABLED - GroupName: - !Join ['', ['prod-build-', !Ref ProjectName]] - S3Logs: - Status: ENABLED - Location: - !Join ['', ['prod-build-', !Ref ProjectName, - '/buildlogs']] - #Standard Linux Image environment - Environment: - ComputeType: BUILD_GENERAL1_SMALL - #Used to pass the production account arn - #to the builds/py/prod_stack_build.py - EnvironmentVariables: - - - Name: PROD_CROSS_ACCOUNT_ARN - Value: !Ref ProdCrossAccountArn - Image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 - Type: LINUX_CONTAINER - - Name: - !Join ['', ['prod-build-', !Ref ProjectName]] - ServiceRole: !Ref ProdCodeBuildRole - #CodeCommit Git repo used for CodeBuild - Source: - #Buildspec file to use for the prod build - BuildSpec: builds/buildspec_prod.yml - Location: !GetAtt GitRepo.CloneUrlHttp - Type: CODECOMMIT - TimeoutInMinutes: 5 - - ########################################## #Code Pipeline Is broken down into stages #that occur sequentially These can be