Commit b0464c86 authored by Girija Saint-Ange's avatar Girija Saint-Ange
Browse files

Merge branch 'chore/correct-readme-params-opts-usage' into 'master'

chore: correct params_opts variable name used in readme example

See merge request to-be-continuous/aws!56
parents 66f94859 ec391a0d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -363,13 +363,13 @@ params_opts="--parameters ParameterKey=EnvType,ParameterValue=$environment_type
if aws cloudformation describe-stacks --output text --stack-name "$environment_name" > /dev/null
then
  echo -e "Stack exists: update..."
  aws cloudformation update-stack --output text --stack-name "$environment_name" --template-body $template_file $parameters
  aws cloudformation update-stack --output text --stack-name "$environment_name" --template-body $template_file $params_opts

  echo "Waiting for stack to be updated..."
  aws cloudformation wait stack-update-complete --stack-name "$environment_name"
else
  echo -e "Stack doesn't exist: create..."
  aws cloudformation create-stack --output text --stack-name "$environment_name" --template-body $template_file $parameters
  aws cloudformation create-stack --output text --stack-name "$environment_name" --template-body $template_file $params_opts
  
  echo "Waiting for stack to be created..."
  aws cloudformation wait stack-create-complete --stack-name "$environment_name"