Skip to content

Commit 0f32d14

Browse files
author
Paul Duvall
committed
remove S3/CodeBuild copy src code
1 parent 90b27af commit 0f32d14

File tree

2 files changed

+2
-55
lines changed

2 files changed

+2
-55
lines changed

CodePipeline/pipeline.yaml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,6 @@ Resources:
4848
VersioningConfiguration:
4949
Status: Enabled
5050

51-
SiteBucket:
52-
Type: AWS::S3::Bucket
53-
DeletionPolicy: Delete
54-
Properties:
55-
AccessControl: PublicRead
56-
BucketName: !Sub ${AWS::StackName}-src
57-
WebsiteConfiguration:
58-
IndexDocument: index.html
59-
6051
CodePipelineSNSTopic:
6152
Type: AWS::SNS::Topic
6253
Properties:
@@ -65,33 +56,6 @@ Resources:
6556
- Endpoint: !Ref Email
6657
Protocol: email
6758

68-
CodeBuildDeploySite:
69-
Type: AWS::CodeBuild::Project
70-
DependsOn: CodeBuildRole
71-
Properties:
72-
Name: !Sub ${AWS::StackName}-DeploySite
73-
Description: Deploy site to S3
74-
ServiceRole: !GetAtt CodeBuildRole.Arn
75-
Artifacts:
76-
Type: CODEPIPELINE
77-
Environment:
78-
Type: LINUX_CONTAINER
79-
ComputeType: BUILD_GENERAL1_SMALL
80-
Image: aws/codebuild/eb-ruby-2.3-amazonlinux-64:2.1.6
81-
Source:
82-
Type: CODEPIPELINE
83-
BuildSpec: !Sub |
84-
version: 0.1
85-
phases:
86-
post_build:
87-
commands:
88-
- aws s3 cp --recursive --acl public-read ./ s3://${AWS::StackName}-src/
89-
artifacts:
90-
type: zip
91-
files:
92-
- '**/*'
93-
94-
TimeoutInMinutes: 10
9559

9660
CFNNagProject:
9761
Type: AWS::CodeBuild::Project
@@ -239,17 +203,6 @@ Resources:
239203
RunOrder: '1'
240204
- Name: Build_and_Train
241205
Actions:
242-
- Name: CopyToS3
243-
ActionTypeId:
244-
Category: Build
245-
Owner: AWS
246-
Provider: CodeBuild
247-
Version: '1'
248-
Configuration:
249-
ProjectName: !Ref CodeBuildDeploySite
250-
InputArtifacts:
251-
- Name: src
252-
RunOrder: '1'
253206
- Name: cfn-nag
254207
ActionTypeId:
255208
Category: Test
@@ -460,10 +413,4 @@ Resources:
460413
Outputs:
461414
PipelineUrl:
462415
Value: !Sub https://console.aws.amazon.com/codepipeline/home?region=${AWS::Region}#/view/${Pipeline}
463-
Description: CodePipeline URL
464-
LaunchStackUrl:
465-
Value: !Sub https://console.aws.amazon.com/cloudformation/home?region=us-east-1#cstack=sn~sagemaker-stack|turl~https://s3.amazonaws.com/${AWS::StackName}-src/CodePipeline/pipeline.yaml
466-
Description: Location of CloudFormation Template used by Launch Stack for us-east-1
467-
LaunchStackMarkdownCode:
468-
Value: !Sub (https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#cstack=sn~sagemaker-stack|turl~https://s3.amazonaws.com/${AWS::StackName}-src/CodePipeline/pipeline.yaml)
469-
Description: Code snippet written in Markdown for launching a stack
416+
Description: CodePipeline URL

CodePipeline/s3-launchstack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AWSTemplateFormatVersion: "2010-09-09"
22
Description: >
3-
CloudFormation SageMaker pipeline.
3+
Creates an S3 bucket that hosts GitHub from stelligent/sagemaker-pipeline to use for Launch Stack.
44
Parameters:
55
Email:
66
Description: The email address where CodePipeline sends pipeline notifications

0 commit comments

Comments
 (0)