This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infrastructure.yml
99 lines (96 loc) · 2.81 KB
/
infrastructure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
OAuth:
Description: OAuth Token for Github Access
Default: "****"
Type: String
NoEcho: true
Resources:
DevOpsTopic:
Type: "AWS::SNS::Topic"
Properties:
TopicName: "offcourse-infrastructure"
Subscription:
- Endpoint: "yeehaa@offcourse.io"
Protocol: email
Pipeline:
Type: "AWS::CodePipeline::Pipeline"
Properties:
Name: offcourse-infrastructure
RoleArn: !ImportValue CodePipelineRoleArn
Stages:
- Name: Source
Actions:
- Name: Source
ActionTypeId:
Category: Source
Owner: ThirdParty
Version: '1'
Provider: GitHub
OutputArtifacts:
- Name: Offcourse
Configuration:
Owner: OffCourse
Repo: infrastructure
Branch: master
OAuthToken: !Ref OAuth
RunOrder: 1
- Name: Dev
Actions:
- InputArtifacts:
- Name: Offcourse
Name: offcourse-infrastructure-dev
ActionTypeId:
Category: Deploy
Owner: AWS
Version: '1'
Provider: CloudFormation
OutputArtifacts: []
Configuration:
StackName: offcourse-infrastructure-dev
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
RoleArn: !ImportValue CloudFormationRoleArn
TemplateConfiguration: Offcourse::dev-config.json
TemplatePath: Offcourse::index.yml
RunOrder: 1
- Name: Edge
Actions:
- InputArtifacts: []
Name: QA
ActionTypeId:
Category: Approval
Owner: AWS
Version: '1'
Provider: Manual
OutputArtifacts: []
Configuration:
NotificationArn: !Ref DevOpsTopic
CustomData: "Approval or Reject this change after running Exploratory Tests"
RunOrder: 1
- InputArtifacts:
- Name: Offcourse
Name: offcourse-infrastructure-edge
ActionTypeId:
Category: Deploy
Owner: AWS
Version: '1'
Provider: CloudFormation
OutputArtifacts: []
Configuration:
StackName: offcourse-infrastructure-edge
ActionMode: CREATE_UPDATE
Capabilities: CAPABILITY_IAM
RoleArn: !ImportValue CloudFormationRoleArn
TemplateConfiguration: Offcourse::edge-config.json
TemplatePath: Offcourse::index.yml
RunOrder: 2
ArtifactStore:
Type: S3
Location: codepipeline-us-east-1-814057763522
Outputs:
DevOpsTopicArn:
Description: Arn of the devops sns topic
Value: !Ref DevOpsTopic
Export:
Name: DevOpsTopicArn