Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit e5a35d2

Browse files
committed
cross region commits
1 parent f46428e commit e5a35d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aws/rats/create_rat.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ function spinner() {
2222

2323
#export AWS_DEFAULT_REGION=us-east-1
2424
#export AWS_DEFAULT_REGION=ap-southeast-2
25-
export AWS_DEFAULT_REGION=eu-central-1
25+
#export AWS_DEFAULT_REGION=eu-central-1
2626

2727
stackStatus=$(aws cloudformation describe-stacks --stack-name "$1"-test-ecs-service --query 'Stacks[0].StackStatus' --output text)
2828

2929
if [[ $stackStatus == "CREATE_COMPLETE" ]]; then
3030
echo "$1 stack has been created"
3131
else
32-
aws cloudformation create-stack --stack-name "$1"-test-ecs-service --template-body file://service-cluster-alb.yaml --parameters ParameterKey=ParentVPCStack,ParameterValue=VPC ParameterKey=LoadBalancerPriority,ParameterValue=${RANDOM:0:4} ParameterKey=LoadBalancerHttps,ParameterValue=true ParameterKey=SubDomainNameWithDot,ParameterValue="$1". ParameterKey=Cpu,ParameterValue=1 ParameterKey=Memory,ParameterValue=2 ParameterKey=DesiredCount,ParameterValue=1 ParameterKey=MaxCapacity,ParameterValue=1  ParameterKey=AppImage,ParameterValue=nginx:latest ParameterKey=ParentZoneStack,ParameterValue=vpc-public-zone ParameterKey=ParentAlertStack,ParameterValue=vpc-alerts ParameterKey=ParentClusterStack,ParameterValue=test-tryorama-cluster ParameterKey=LoadBalancerHostPattern,ParameterValue="$1".holochain-aws.org ParameterKey=MinCapacity,ParameterValue=1 --capabilities CAPABILITY_IAM
32+
aws cloudformation create-stack --stack-name "$1"-test-ecs-service --template-body file://service-cluster-alb.yaml --parameters ParameterKey=ParentVPCStack,ParameterValue=VPC ParameterKey=LoadBalancerPriority,ParameterValue=${RANDOM:0:4} ParameterKey=LoadBalancerHttps,ParameterValue=true ParameterKey=SubDomainNameWithDot,ParameterValue="$1"."$AWS_DEFAULT_REGION" ParameterKey=Cpu,ParameterValue=1 ParameterKey=Memory,ParameterValue=2 ParameterKey=DesiredCount,ParameterValue=1 ParameterKey=MaxCapacity,ParameterValue=1  ParameterKey=AppImage,ParameterValue=nginx:latest ParameterKey=ParentZoneStack,ParameterValue=vpc-public-zone ParameterKey=ParentAlertStack,ParameterValue=vpc-alerts ParameterKey=ParentClusterStack,ParameterValue=test-tryorama-cluster ParameterKey=LoadBalancerHostPattern,ParameterValue="$1".holochain-aws.org ParameterKey=MinCapacity,ParameterValue=1 --capabilities CAPABILITY_IAM
3333

3434
stackStatus=$(aws cloudformation wait stack-create-complete --stack-name "$1"-test-ecs-service) &
3535
spinner "Stack is being deployed"
3636
echo "///////////////"
37-
echo "Stack deployed and should be available at stack: "$1"-test-ecs-service / url: $1.holochain-aws.org"
37+
echo "Stack deployed and should be available at stack: "$1"-test-ecs-service / url: $1.$AWS_DEFAULT_REGION.holochain-aws.org"
3838
fi

aws/rats/delete_rat.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function spinner() {
2222

2323
#export AWS_DEFAULT_REGION=us-east-1
2424
#export AWS_DEFAULT_REGION=ap-southeast-2
25-
export AWS_DEFAULT_REGION=eu-central-1
25+
#export AWS_DEFAULT_REGION=eu-central-1
2626

2727
stackStatus=$(aws cloudformation describe-stacks --stack-name "$1"-test-ecs-service --query 'Stacks[0].StackStatus' --output text)
2828

0 commit comments

Comments
 (0)