-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·40 lines (35 loc) · 1.2 KB
/
deploy.sh
File metadata and controls
executable file
·40 lines (35 loc) · 1.2 KB
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
#!/usr/bin/env bash
STACK_NAME=$1
TEMPLATE_BODY="file://couchbase-byol.template"
REGION=$2
ServerInstanceCount=$3
ServerVersion=$4
ServerUrl=$6
ServerUsername=$7
ServerPassword=$8
ServerDiskSize="100"
SyncGatewayInstanceCount="0"
InstanceType="m4.xlarge"
Username="Administrator"
Password="password"
KeyName=$5
SSHCIDR="0.0.0.0/0"
echo $ServerUrl
aws cloudformation create-stack \
--capabilities CAPABILITY_IAM \
--template-body ${TEMPLATE_BODY} \
--stack-name ${STACK_NAME} \
--region ${REGION} \
--parameters \
ParameterKey=ServerInstanceCount,ParameterValue=${ServerInstanceCount} \
ParameterKey=ServerVersion,ParameterValue=${ServerVersion} \
ParameterKey=ServerUrl,ParameterValue=${ServerUrl} \
ParameterKey=ServerUser,ParameterValue=${ServerUsername} \
ParameterKey=ServerPassword,ParameterValue=${ServerPassword} \
ParameterKey=ServerDiskSize,ParameterValue=${ServerDiskSize} \
ParameterKey=SyncGatewayInstanceCount,ParameterValue=${SyncGatewayInstanceCount} \
ParameterKey=InstanceType,ParameterValue=${InstanceType} \
ParameterKey=Username,ParameterValue=${Username} \
ParameterKey=Password,ParameterValue=${Password} \
ParameterKey=KeyName,ParameterValue=${KeyName} \
ParameterKey=SSHCIDR,ParameterValue=${SSHCIDR}