@@ -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:
460413Outputs :
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
0 commit comments