-
Notifications
You must be signed in to change notification settings - Fork 5
/
update-stack-pipeline.sh
executable file
·26 lines (24 loc) · 1.32 KB
/
update-stack-pipeline.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
#!/bin/bash
PREFIX=${1:-default}
STACK_PREFIX="helloworld-$PREFIX"
aws cloudformation update-stack --capabilities CAPABILITY_IAM --stack-name $STACK_PREFIX-pipe --template-body file://cloudformation/pipeline.yaml --parameters \
ParameterKey=CodeCommitRepositoryARN,UsePreviousValue=true \
ParameterKey=CodeCommitRepositoryName,UsePreviousValue=true \
ParameterKey=DockerLocalTag,UsePreviousValue=true \
ParameterKey=RepoUrl,UsePreviousValue=true \
ParameterKey=FargateStackName,UsePreviousValue=true \
ParameterKey=NetworkStack,UsePreviousValue=true \
ParameterKey=LoadBalancerStack,UsePreviousValue=true \
ParameterKey=DatabaseStack,UsePreviousValue=true \
ParameterKey=DBPassSSMName,UsePreviousValue=true \
ParameterKey=CloudFormationRole,UsePreviousValue=true \
ParameterKey=TargetGroup,UsePreviousValue=true \
ParameterKey=TargetGroup2,UsePreviousValue=true \
ParameterKey=Stage2FargateStackName,UsePreviousValue=true \
ParameterKey=Stage2LoadBalancerStack,UsePreviousValue=true \
ParameterKey=Stage2DBPassSSMName,UsePreviousValue=true \
ParameterKey=Stage2DatabaseStack,UsePreviousValue=true \
ParameterKey=Stage2NetworkStack,UsePreviousValue=true \
ParameterKey=Stage2TargetGroup,UsePreviousValue=true \
ParameterKey=Stage2TargetGroup2,UsePreviousValue=true \
ParameterKey=Stage2CloudFormationRole,UsePreviousValue=true