-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest-ecs-deployment.yaml
121 lines (97 loc) · 2.48 KB
/
test-ecs-deployment.yaml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Description: >
This template illustrates reference architecture for Deployment on ECS.
Parameters:
TemplateBucket:
Type: String
Description: >
S3 Bucket used for nested templates
Default: sgas.botkit.demo
GitHubUser:
Type: String
Default: YourGithubUsernameHere
GitHubRepo:
Type: String
Default: botkit
GitHubBranch:
Type: String
Default: master
GitHubToken:
Type: String
Default: YourGithubTokenHere
HostedZoneName:
Type: String
Default: YourHostedZoneNameHere
Stack:
Type: String
Default: Botkit
DBPassword:
Default: password
NoEcho: true
Description: testdb admin account password
Type: String
MinLength: 6
MaxLength: 41
AllowedPattern: "[a-zA-Z0-9]*"
ConstraintDescription: must contain only alphanumeric characters.
Hostname:
Type: String
Default: botkit
certificateArn:
Type: String
Default: YourCertificateARnHere
clientId:
Type: String
Default: YourSlackClientIdHere
clientSecret:
Type: String
Default: YourSlackClientSecretHere
lexBotName:
Type: String
Default: botkit
VpcId:
Type: String
Default: YourVpcIdHere
VpcCIDR:
Type: String
Default: YourVpcCIDRHere
Subnet1:
Type: String
Default: YourSubnet1Here
Subnet2:
Type: String
Default: YourSubnet2Here
ClusterCount:
Type: String
Default: "2"
Filename:
Type: String
Default: lambda_function.zip
Resources:
DeploymentPipeline:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: !Sub https://s3.amazonaws.com/${TemplateBucket}/test-deployment-pipeline.yaml
Parameters:
TemplateBucket: !Ref TemplateBucket
Subnet1: !Ref Subnet1
Subnet2: !Ref Subnet2
VpcId: !Ref VpcId
VpcCIDR: !Ref VpcCIDR
Stack: !Ref Stack
HostedZoneName: !Ref HostedZoneName
Hostname: !Ref Hostname
certificateArn: !Ref certificateArn
clientId: !Ref clientId
clientSecret: !Ref clientSecret
DBPassword: !Ref DBPassword
lexBotName: !Ref lexBotName
ClusterCount: !Ref ClusterCount
Filename: !Ref Filename
GitHubUser: !Ref GitHubUser
GitHubRepo: !Ref GitHubRepo
GitHubBranch: !Ref GitHubBranch
GitHubToken: !Ref GitHubToken
Outputs:
PipelineUrl:
Description: The continuous deployment pipeline in the AWS Management Console.
Value: !GetAtt DeploymentPipeline.Outputs.PipelineUrl