-
Notifications
You must be signed in to change notification settings - Fork 21
/
deploy-test.sh
executable file
·36 lines (31 loc) · 1.26 KB
/
deploy-test.sh
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
#!/usr/bin/env bash
STACK_NAME=$1
TEMPLATE_BODY="file://couchbase-test.template"
REGION=`aws configure get region`
InstanceType="m5.xlarge"
ServerInstanceCount="3"
ServerDiskSize="100"
SyncGatewayInstanceCount="0"
SyncGatewayInstanceType="m5.large"
Username="couchbase"
Password="foo123!"
KeyName="couchbase-${REGION}"
#Uncomment below if you want to edit the services running on the nodes. The data service is a minimum requirement
#Services"data,index,query,fts,eventing,analytics"
License=BYOL #BYOL or HourlyPricing
aws cloudformation create-stack \
--capabilities CAPABILITY_IAM \
--template-body ${TEMPLATE_BODY} \
--stack-name ${STACK_NAME} \
--region ${REGION} \
--parameters \
ParameterKey=ServerInstanceCount,ParameterValue=${ServerInstanceCount} \
ParameterKey=ServerDiskSize,ParameterValue=${ServerDiskSize} \
ParameterKey=SyncGatewayInstanceCount,ParameterValue=${SyncGatewayInstanceCount} \
ParameterKey=InstanceType,ParameterValue=${InstanceType} \
ParameterKey=Username,ParameterValue=${Username} \
ParameterKey=Password,ParameterValue=${Password} \
ParameterKey=KeyName,ParameterValue=${KeyName} \
#Uncomment below you uncommented Services in the variable definitions
#ParameterKey=KeyName,ParameterValue=${Services} \
ParameterKey=License,ParameterValue=${License}