Skip to content

Commit

Permalink
fix id length and docker stack selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Jan 19, 2019
1 parent 310bf66 commit f2678d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_ebs_env.sh
Expand Up @@ -13,7 +13,7 @@ fail() {
export AWS_DEFAULT_REGION=${AWS_REGION:-us-east-1}

datetag=$(date +%Y%m%d%H%M)
identifier=$(whoami)-invoicer-$datetag
identifier=$(whoami)ivcr$datetag
mkdir -p tmp/$identifier

echo "Creating EBS application $identifier"
Expand Down Expand Up @@ -77,7 +77,7 @@ echo "ElasticBeanTalk application created"

# Get the name of the latest Docker solution stack
dockerstack="$(aws elasticbeanstalk list-available-solution-stacks | \
jq -r '.SolutionStacks[]' | grep -P '.+Amazon Linux.+Docker.+' | head -1)"
jq -r '.SolutionStacks[]' | grep -P '.+Amazon Linux.+running Docker.+' | head -1)"

# Create the EB API environment
sed "s/POSTGRESPASSREPLACEME/$dbpass/" ebs-options.json > tmp/$identifier/ebs-options.json || fail
Expand Down

0 comments on commit f2678d0

Please sign in to comment.